File tree 1 file changed +10
-11
lines changed
1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change 15
15
: ${PGPORT=50432}
16
16
export PGPORT
17
17
18
- testhost=` uname -o `
18
+ testhost=` uname -s `
19
19
20
20
temp_root=$PWD /tmp_check
21
21
@@ -110,23 +110,22 @@ pg_upgrade -d "${PGDATA}.old" -D "${PGDATA}" -b "$oldbindir" -B "$bindir"
110
110
111
111
pg_ctl start -l " $logdir /postmaster2.log" -o ' -F' -w
112
112
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
+
118
118
pg_dumpall -f " $temp_root " /dump2.sql || pg_dumpall2_status=$?
119
119
pg_ctl -m fast stop
120
120
if [ -n " $pg_dumpall2_status " ]; then
121
121
echo " pg_dumpall of post-upgrade database cluster failed"
122
122
exit 1
123
123
fi
124
124
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
130
129
131
130
if diff -q " $temp_root " /dump1.sql " $temp_root " /dump2.sql; then
132
131
echo PASSED
You can’t perform that action at this time.
0 commit comments