]> granicus.if.org Git - zfs/commitdiff
ZTS: largest_pool_001 path cleanup
authorbunder2015 <omfgbunder@gmail.com>
Sun, 19 Aug 2018 04:18:31 +0000 (00:18 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sun, 19 Aug 2018 04:18:31 +0000 (21:18 -0700)
Removing hardcoded paths in largest_pool_001

Reviewed-by: Giuseppe Di Natale <guss80@gmail.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: bunder2015 <omfgbunder@gmail.com>
Closes #7804

tests/zfs-tests/tests/functional/largest_pool/largest_pool_001_pos.ksh

index 98dc45be26c818627e12de9e01a8d59783930692..1bc8f72d6ab4ebf473575864890878c95b8c9eff 100755 (executable)
@@ -68,13 +68,13 @@ function parse_expected_output
        esac
 
        log_note "Detect zpool $TESTPOOL in this test machine."
-       log_must eval "zpool list $TESTPOOL > /tmp/j.$$"
-       log_must eval "grep $TESTPOOL /tmp/j.$$ | \
+       log_must eval "zpool list $TESTPOOL > $TEST_BASE_DIR/j.$$"
+       log_must eval "grep $TESTPOOL $TEST_BASE_DIR/j.$$ | \
                awk '{print $2}' | grep $CHKUNIT"
 
        log_note "Detect the file system in this test machine."
-       log_must eval "df -F zfs -h > /tmp/j.$$"
-       log_must eval "grep $TESTPOOL /tmp/j.$$ | \
+       log_must eval "df -F zfs -h > $TEST_BASE_DIR/j.$$"
+       log_must eval "grep $TESTPOOL $TEST_BASE_DIR/j.$$ | \
                awk '{print $2}' | grep $CHKUNIT"
 
        return 0
@@ -101,7 +101,7 @@ function cleanup
 
        destroy_pool $TESTPOOL2
 
-       rm -f /tmp/j.* > /dev/null
+       rm -f $TEST_BASE_DIR/j.* > /dev/null
 }
 
 log_assert "The largest pool can be created and a dataset in that" \