File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change 1515: ${PGPORT=50432}
1616export PGPORT
1717
18- testhost=` uname -o `
18+ testhost=` uname -s `
1919
2020temp_root=$PWD /tmp_check
2121
@@ -110,23 +110,22 @@ pg_upgrade -d "${PGDATA}.old" -D "${PGDATA}" -b "$oldbindir" -B "$bindir"
110110
111111pg_ctl start -l " $logdir /postmaster2.log" -o ' -F' -w
112112
113- if [ $testhost = Msys ] ; then
114- cmd /c analyze_new_cluster.bat
115- else
116- sh ./analyze_new_cluster.sh
117- fi
113+ case $testhost in
114+ MINGW * ) cmd /c analyze_new_cluster.bat ;;
115+ * ) sh ./analyze_new_cluster.sh ;;
116+ esac
117+
118118pg_dumpall -f " $temp_root " /dump2.sql || pg_dumpall2_status=$?
119119pg_ctl -m fast stop
120120if [ -n " $pg_dumpall2_status " ]; then
121121 echo " pg_dumpall of post-upgrade database cluster failed"
122122 exit 1
123123fi
124124
125- if [ $testhost = Msys ] ; then
126- cmd /c delete_old_cluster.bat
127- else
128- sh ./delete_old_cluster.sh
129- fi
125+ case $testhost in
126+ MINGW* ) cmd /c delete_old_cluster.bat ;;
127+ * ) sh ./delete_old_cluster.sh ;;
128+ esac
130129
131130if diff -q " $temp_root " /dump1.sql " $temp_root " /dump2.sql; then
132131 echo PASSED
You can’t perform that action at this time.
0 commit comments