diff options
author | bunder2015 <[email protected]> | 2018-04-13 13:35:55 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2018-04-13 10:35:55 -0700 |
commit | 1e37dee03f6ecc01362f8e18607737db693790d7 (patch) | |
tree | ac2bb2c46f997846f4dea19ddc6871fb55f9f402 /tests | |
parent | d6bb22171b6e4e8b16a8243b8cd63f571f11c4ff (diff) |
ZTS: clean up leftover ibackup_trunc files
zfs_receive_raw_incremental did not clean up ibackup_trunc.* files
left over from running the test.
Also changing the path of the ibackup files so they can be placed
in the correct directories when /var/tmp is not the temporary
directory.
Reviewed-by: Giuseppe Di Natale <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: bunder2015 <[email protected]>
Closes #7430
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/zfs-tests/tests/functional/cli_root/zfs_receive/zfs_receive_raw_incremental.ksh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/zfs-tests/tests/functional/cli_root/zfs_receive/zfs_receive_raw_incremental.ksh b/tests/zfs-tests/tests/functional/cli_root/zfs_receive/zfs_receive_raw_incremental.ksh index 48878327b..1e91c6262 100755 --- a/tests/zfs-tests/tests/functional/cli_root/zfs_receive/zfs_receive_raw_incremental.ksh +++ b/tests/zfs-tests/tests/functional/cli_root/zfs_receive/zfs_receive_raw_incremental.ksh @@ -49,14 +49,15 @@ function cleanup log_must zfs destroy -r $TESTPOOL/$TESTFS2 [[ -f $ibackup ]] && log_must rm -f $ibackup + [[ -f $ibackup_trunc ]] && log_must rm -f $ibackup_trunc } log_onexit cleanup log_assert "ZFS should receive streams from raw incremental sends" -typeset ibackup="/var/tmp/ibackup.$$" -typeset ibackup_trunc="/var/tmp/ibackup_trunc.$$" +typeset ibackup="$TEST_BASE_DIR/ibackup.$$" +typeset ibackup_trunc="$TEST_BASE_DIR/ibackup_trunc.$$" typeset passphrase="password" typeset passphrase2="password2" typeset snap1="$TESTPOOL/$TESTFS1@snap1" |