run_test 11 "execution of file opened for write should return error ===="
test_12() {
- DIR=$DIR DIR2=$DIR2 sh lockorder.sh
+ DIR=$DIR DIR2=$DIR2 bash lockorder.sh
}
run_test 12 "test lock ordering (link, stat, unlink)"
test_15() { # bug 974 - ENOSPC
echo "PATH=$PATH"
- sh oos2.sh $MOUNT1 $MOUNT2
+ bash oos2.sh $MOUNT1 $MOUNT2
wait_delete_completed
grant_error=$(dmesg | grep "< tot_grant")
[ -z "$grant_error" ] || error "$grant_error"
test_30() { #b=11110, LU-2523
test_mkdir $DIR1/$tdir
cp -f /bin/bash $DIR1/$tdir/bash
- /bin/sh -c 'sleep 1; rm -f $DIR2/$tdir/bash; cp /bin/bash $DIR2/$tdir' &
+ bash -c 'sleep 1; rm -f $DIR2/$tdir/bash; cp /bin/bash $DIR2/$tdir' &
$DIR1/$tdir/bash -c 'sleep 2;
openfile -f O_RDONLY /proc/$$/exe >& /dev/null; echo $?'
wait
# trigger CoS twice in case transaction commit before unlock
for i in 1 2; do
- sh -c "$1"
+ bash -c "$1"
do_nodes $nodes "lctl set_param -n mdt.*.async_commit_count=0"
- sh -c "$2"
+ bash -c "$2"
commit_nr=$(do_nodes $nodes \
"lctl get_param -n mdt.*.async_commit_count" | calc_sum)
total=$((total + commit_nr));