]> granicus.if.org Git - zfs/commitdiff
ZTS: remove dead cleanup code from snapshot tests
authorbunder2015 <omfgbunder@gmail.com>
Mon, 7 May 2018 04:02:10 +0000 (00:02 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 7 May 2018 04:02:10 +0000 (21:02 -0700)
Caught during path cleanups, the files referenced do not appear to be
created or used anywhere.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: bunder2015 <omfgbunder@gmail.com>
Closes #7508

tests/zfs-tests/tests/functional/snapshot/snapshot_002_pos.ksh
tests/zfs-tests/tests/functional/snapshot/snapshot_006_pos.ksh

index f9c05e651958ead07ee859853ff0f017c50180dd..b404ffbd50e637967f6fb49b8146f036b1c2274b 100755 (executable)
@@ -68,10 +68,6 @@ function cleanup
                 log_must rm -rf $TESTDIR/* > /dev/null 2>&1
         fi
 
-       if [[ -e /tmp/zfs_snapshot2.$$ ]]; then
-               log_must rm -rf /tmp/zfs_snapshot2.$$ > /dev/null 2>&1
-       fi
-
 }
 
 log_assert "Verify an archive of a file system is identical to " \
index 632f50059feb17b572af599d827b094d35400bbb..dc50e46933aa5205bdb2f3a55d50b92d69ca18dc 100755 (executable)
@@ -67,10 +67,6 @@ function cleanup
                 log_must rm -rf $TESTDIR1/* > /dev/null 2>&1
         fi
 
-       if [[ -e /tmp/zfs_snapshot2.$$ ]]; then
-               log_must rm -rf /tmp/zfs_snapshot2.$$ > /dev/null 2>&1
-       fi
-
 }
 
 log_assert "Verify that an archive of a dataset is identical to " \