]> git.proxmox.com Git - mirror_zfs.git/commitdiff
remove sanity check in replacement test
authorJinshan Xiong <jinshan.xiong@intel.com>
Tue, 12 Apr 2016 22:27:47 +0000 (15:27 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 13 Apr 2016 18:30:12 +0000 (11:30 -0700)
In replacement test, it spawns a process to truncate a file background
and make sure that the process exists 1 second later. However, the
process may have finished its work and exited therefore it has the
chance to report a false alarm.

This patch just removed those sanity check.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4516

tests/zfs-tests/tests/functional/replacement/replacement_001_pos.ksh
tests/zfs-tests/tests/functional/replacement/replacement_002_pos.ksh
tests/zfs-tests/tests/functional/replacement/replacement_003_pos.ksh

index 1d66ff7c6e620dfc52fd569a20b49e800dec111c..fcc575f832aa30d36b37d3f176287f24be9acc08 100755 (executable)
@@ -99,9 +99,6 @@ function replace_test
                typeset pid=$!
 
                $SLEEP 1
-               if ! $PS -p $pid > /dev/null 2>&1; then
-                       log_fail "$FILE_TRUNC $options $TESTDIR/$TESTFILE.$i"
-               fi
 
                child_pids="$child_pids $pid"
                ((i = i + 1))
index 37903961d712fc63ad44de5d5a54453c98f2bb43..aae6d78a712afd2f7213e4e4e04c25f3b0d153a2 100755 (executable)
@@ -99,9 +99,6 @@ function attach_test
                typeset pid=$!
 
                $SLEEP 1
-               if ! $PS -p $pid > /dev/null 2>&1; then
-                       log_fail "$FILE_TRUNC $options $TESTDIR/$TESTFILE.$i"
-               fi
 
                child_pids="$child_pids $pid"
                ((i = i + 1))
index 355326454922e1c665dee2b4c39453293b6d2599..1a7a7d87b3969f12841b651979caf47da1006b25 100755 (executable)
@@ -97,9 +97,6 @@ function detach_test
                typeset pid=$!
 
                $SLEEP 1
-               if ! $PS -p $pid > /dev/null 2>&1; then
-                       log_fail "$FILE_TRUNC $options $TESTDIR/$TESTFILE.$i"
-               fi
 
                child_pids="$child_pids $pid"
                ((i = i + 1))