aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorbunder2015 <[email protected]>2018-08-19 00:18:31 -0400
committerBrian Behlendorf <[email protected]>2018-08-18 21:18:31 -0700
commit80d45e089c4a1d90c7519f793cbb02198da9c85d (patch)
treedc298a61cbbaaca3a727249c14420a8113aba21e /tests
parent5468ee7a2f659cd33b3652cefff6ce4aa987e574 (diff)
ZTS: largest_pool_001 path cleanup
Removing hardcoded paths in largest_pool_001 Reviewed-by: Giuseppe Di Natale <[email protected]> Reviewed-by: George Melikov <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: bunder2015 <[email protected]> Closes #7804
Diffstat (limited to 'tests')
-rwxr-xr-xtests/zfs-tests/tests/functional/largest_pool/largest_pool_001_pos.ksh10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/zfs-tests/tests/functional/largest_pool/largest_pool_001_pos.ksh b/tests/zfs-tests/tests/functional/largest_pool/largest_pool_001_pos.ksh
index 98dc45be2..1bc8f72d6 100755
--- a/tests/zfs-tests/tests/functional/largest_pool/largest_pool_001_pos.ksh
+++ b/tests/zfs-tests/tests/functional/largest_pool/largest_pool_001_pos.ksh
@@ -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" \