mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
QA tweaks - use a single os type source mainly (drop get_os, use HOST_OS)
This commit is contained in:
@@ -100,6 +100,7 @@ _scratch_options()
|
||||
|
||||
case $type in
|
||||
mkfs)
|
||||
[ "$HOSTOS" != "IRIX" ] && SCRATCH_OPTIONS="$SCRATCH_OPTIONS -f"
|
||||
rt_opt="-r"
|
||||
log_opt="-l"
|
||||
;;
|
||||
@@ -123,8 +124,7 @@ _test_options()
|
||||
return
|
||||
fi
|
||||
|
||||
case $type
|
||||
in
|
||||
case $type in
|
||||
mkfs)
|
||||
rt_opt="-r"
|
||||
log_opt="-l"
|
||||
@@ -164,10 +164,8 @@ _scratch_mkfs_options()
|
||||
}
|
||||
|
||||
_scratch_mkfs_xfs()
|
||||
{
|
||||
{
|
||||
_scratch_options mkfs
|
||||
[ "$HOSTOS" != "IRIX" ] && \
|
||||
SCRATCH_OPTIONS="$SCRATCH_OPTIONS -f"
|
||||
|
||||
$MKFS_XFS_PROG $SCRATCH_OPTIONS $MKFS_OPTIONS $* $SCRATCH_DEV
|
||||
mkfs_status=$?
|
||||
@@ -788,8 +786,6 @@ _check_test_fs()
|
||||
|
||||
_check_scratch_fs()
|
||||
{
|
||||
|
||||
|
||||
case $FSTYP in
|
||||
xfs)
|
||||
SCRATCH_LOG=""
|
||||
@@ -833,8 +829,6 @@ _full_platform_details()
|
||||
|
||||
_check_testdir()
|
||||
{
|
||||
|
||||
|
||||
case $FSTYP in
|
||||
xfs)
|
||||
_check_test_fs
|
||||
@@ -915,8 +909,6 @@ _setup_nfs_testdir()
|
||||
|
||||
_setup_testdir()
|
||||
{
|
||||
|
||||
|
||||
case $FSTYP in
|
||||
xfs)
|
||||
_setup_xfs_testdir
|
||||
@@ -935,8 +927,6 @@ _setup_testdir()
|
||||
|
||||
_cleanup_testdir()
|
||||
{
|
||||
|
||||
|
||||
case $FSTYP in
|
||||
xfs)
|
||||
# do nothing, testdir is $TEST_DIR
|
||||
@@ -1009,18 +999,5 @@ _link_out_file()
|
||||
fi
|
||||
}
|
||||
|
||||
_get_os()
|
||||
{
|
||||
|
||||
if [ "`uname`" == "IRIX64" ] || [ "`uname`" == "IRIX" ]; then
|
||||
os=irix
|
||||
elif [ "`uname`" == "Linux" ]; then
|
||||
os=linux
|
||||
else
|
||||
echo Error test does not run on the operating system: `uname`
|
||||
exit
|
||||
fi
|
||||
}
|
||||
|
||||
# make sure this script returns success
|
||||
/bin/true
|
||||
|
||||
Reference in New Issue
Block a user