|
53 | 53 |
|
54 | 54 | - name: Test mysql gbk support with new client |
55 | 55 | run: | |
| 56 | + stat ${{steps.vars.outputs.MOUNT_POINT1}} |
| 57 | + [ $? -eq 0 ] && [ `stat -c %i ${{steps.vars.outputs.MOUNT_POINT1}}` == 1 ] && ./juicefs umount -f ${{steps.vars.outputs.MOUNT_POINT1}} |
| 58 | + stat ${{steps.vars.outputs.MOUNT_POINT2}} |
| 59 | + [ $? -eq 0 ] && [ `stat -c %i ${{steps.vars.outputs.MOUNT_POINT2}}` == 1 ] && ./juicefs umount -f ${{steps.vars.outputs.MOUNT_POINT2}} |
56 | 60 | db_name=$(basename ${{steps.vars.outputs.META_URL1}}) |
57 | 61 | mysql -uroot -proot -e "drop database if exists $db_name; create database $db_name;" |
58 | 62 | db_name=$(basename ${{steps.vars.outputs.META_URL2}}) |
@@ -111,8 +115,8 @@ jobs: |
111 | 115 | ./juicefs umount ${{steps.vars.outputs.MOUNT_POINT2}} |
112 | 116 | - name: Test remount with new client after alter db to binary |
113 | 117 | run: | |
114 | | - [ `stat -c %i ${{steps.vars.outputs.MOUNT_POINT1}}` == 1 ] || juicefs umount -f ${{steps.vars.outputs.MOUNT_POINT1}} || exit 1 |
115 | | - [ `stat -c %i ${{steps.vars.outputs.MOUNT_POINT2}}` == 1 ] || juicefs umount -f ${{steps.vars.outputs.MOUNT_POINT2}} || exit 1 |
| 118 | + [ `stat -c %i ${{steps.vars.outputs.MOUNT_POINT1}}` == 1 ] && ./juicefs umount -f ${{steps.vars.outputs.MOUNT_POINT1}} |
| 119 | + [ `stat -c %i ${{steps.vars.outputs.MOUNT_POINT2}}` == 1 ] && ./juicefs umount -f ${{steps.vars.outputs.MOUNT_POINT2}} |
116 | 120 | db_name=$(basename ${{steps.vars.outputs.META_URL1}}) |
117 | 121 | mysql -uroot -proot -e "drop database if exists $db_name; create database $db_name;" |
118 | 122 | db_name=$(basename ${{steps.vars.outputs.META_URL2}}) |
@@ -181,8 +185,8 @@ jobs: |
181 | 185 | ./juicefs umount ${{steps.vars.outputs.MOUNT_POINT1}} |
182 | 186 | - name: Test mount old meta using new client without db change |
183 | 187 | run: | |
184 | | - [ `stat -c %i ${{steps.vars.outputs.MOUNT_POINT1}}` == 1 ] || juicefs umount -f ${{steps.vars.outputs.MOUNT_POINT1}} || exit 1 |
185 | | - [ `stat -c %i ${{steps.vars.outputs.MOUNT_POINT2}}` == 1 ] || juicefs umount -f ${{steps.vars.outputs.MOUNT_POINT2}} || exit 1 |
| 188 | + [ `stat -c %i ${{steps.vars.outputs.MOUNT_POINT1}}` == 1 ] && ./juicefs umount -f ${{steps.vars.outputs.MOUNT_POINT1}} |
| 189 | + [ `stat -c %i ${{steps.vars.outputs.MOUNT_POINT2}}` == 1 ] && ./juicefs umount -f ${{steps.vars.outputs.MOUNT_POINT2}} |
186 | 190 | db_name=$(basename ${{steps.vars.outputs.META_URL1}}) |
187 | 191 | mysql -uroot -proot -e "drop database if exists $db_name; create database $db_name;" |
188 | 192 | db_name=$(basename ${{steps.vars.outputs.META_URL2}}) |
@@ -212,8 +216,8 @@ jobs: |
212 | 216 | ./juicefs umount ${{steps.vars.outputs.MOUNT_POINT1}} |
213 | 217 | - name: Test dump with old client and load with new client |
214 | 218 | run: | |
215 | | - [ `stat -c %i ${{steps.vars.outputs.MOUNT_POINT1}}` == 1 ] || juicefs umount -f ${{steps.vars.outputs.MOUNT_POINT1}} || exit 1 |
216 | | - [ `stat -c %i ${{steps.vars.outputs.MOUNT_POINT2}}` == 1 ] || juicefs umount -f ${{steps.vars.outputs.MOUNT_POINT2}} || exit 1 |
| 219 | + [ `stat -c %i ${{steps.vars.outputs.MOUNT_POINT1}}` == 1 ] && ./juicefs umount -f ${{steps.vars.outputs.MOUNT_POINT1}} |
| 220 | + [ `stat -c %i ${{steps.vars.outputs.MOUNT_POINT2}}` == 1 ] && ./juicefs umount -f ${{steps.vars.outputs.MOUNT_POINT2}} |
217 | 221 | db_name=$(basename ${{steps.vars.outputs.META_URL1}}) |
218 | 222 | mysql -uroot -proot -e "drop database if exists $db_name; create database $db_name;" |
219 | 223 | db_name=$(basename ${{steps.vars.outputs.META_URL2}}) |
|
0 commit comments