From a82a4a15be9559b20ec8e8df1430fc4c901d0b69 Mon Sep 17 00:00:00 2001 From: bunder2015 Date: Mon, 7 May 2018 00:02:10 -0400 Subject: [PATCH] ZTS: remove dead cleanup code from snapshot tests Caught during path cleanups, the files referenced do not appear to be created or used anywhere. Reviewed-by: Brian Behlendorf Signed-off-by: bunder2015 Closes #7508 --- .../zfs-tests/tests/functional/snapshot/snapshot_002_pos.ksh | 4 ---- .../zfs-tests/tests/functional/snapshot/snapshot_006_pos.ksh | 4 ---- 2 files changed, 8 deletions(-) diff --git a/tests/zfs-tests/tests/functional/snapshot/snapshot_002_pos.ksh b/tests/zfs-tests/tests/functional/snapshot/snapshot_002_pos.ksh index f9c05e651..b404ffbd5 100755 --- a/tests/zfs-tests/tests/functional/snapshot/snapshot_002_pos.ksh +++ b/tests/zfs-tests/tests/functional/snapshot/snapshot_002_pos.ksh @@ -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 " \ diff --git a/tests/zfs-tests/tests/functional/snapshot/snapshot_006_pos.ksh b/tests/zfs-tests/tests/functional/snapshot/snapshot_006_pos.ksh index 632f50059..dc50e4693 100755 --- a/tests/zfs-tests/tests/functional/snapshot/snapshot_006_pos.ksh +++ b/tests/zfs-tests/tests/functional/snapshot/snapshot_006_pos.ksh @@ -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 " \