QA tweaks - use a single os type source mainly (drop get_os, use HOST_OS)

This commit is contained in:
fsgqa
2004-06-16 06:08:04 +00:00
parent 4237cdb1c1
commit 562962e6b1
7 changed files with 5 additions and 78 deletions
+3 -26
View File
@@ -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