st: fix m0mount test on
When running the test:
$ scripts/m0 run-st 07mount
...
# (cd /var/motr/ant/sandbox.st-07mount && sh /var/motr/ant/sandbox.st-07mount/find_disks.sh)
/var/motr/ant/sandbox.st-07mount/find_disks.sh: 34: /var/motr/ant/sandbox.st-07mount/find_disks.sh: [[: not found
On Ubuntu sh is sh, not bash.
Solution: make find_disks.sh executable and run it as bash-script.
@@ -423,6 +423,7 @@ for dev in \$devs; do
done
exit 0
EOF
+ chmod +x $SF
if [ $H != $THIS_HOST ]; then
l_do scp $SF $H:$DISKS_SH
else
@@ -433,7 +434,7 @@ EOF
return 1
fi
- $RUN "(cd $WORK_ARENA && sh $DISKS_SH)"
+ $RUN "(cd $WORK_ARENA && $DISKS_SH)"
if [ $? -ne 0 ]; then
echo ERROR: Failed to get disks list on $H
return 1
