mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfstests: Convert all tests to use /bin/bash
While most tests use /bin/sh, they are dependent on /bin/sh being a bash shell. Convert all the tests to execute via /bin/bash as it is much, much simpler than trying to debug and remove all the bashisms throughout the test code. Signed-off-by: Dave Chinner <david@fromorbit.com> Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#! /bin/sh
|
||||
#! /bin/bash
|
||||
# FSQA Test No. 128
|
||||
#
|
||||
# Test nosuid mount option modified from CXFSQA test mount_option_nosuid
|
||||
@@ -58,7 +58,7 @@ cp `which ls` $SCRATCH_MNT
|
||||
chmod 700 $SCRATCH_MNT/nosuid
|
||||
chmod 4755 $SCRATCH_MNT/ls
|
||||
|
||||
su -s/bin/sh - $qa_user -c "$SCRATCH_MNT/ls $SCRATCH_MNT/nosuid >/dev/null 2>&1"
|
||||
su -s/bin/bash - $qa_user -c "$SCRATCH_MNT/ls $SCRATCH_MNT/nosuid >/dev/null 2>&1"
|
||||
if [ $? -eq 0 ] ; then
|
||||
echo "Error: we shouldn't be able to ls the directory"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user