Skip to content

Commit

Permalink
ZTS: clean up leftover ibackup_trunc files
Browse files Browse the repository at this point in the history
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 openzfs#7430
  • Loading branch information
bunder2015 authored and behlendorf committed Apr 13, 2018
1 parent d6bb221 commit 1e37dee
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1e37dee

Please sign in to comment.