]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
generic/019: Silence possible kill failure
authorNikolay Borisov <nborisov@suse.com>
Tue, 6 Jun 2017 13:37:22 +0000 (16:37 +0300)
committerEryu Guan <eguan@redhat.com>
Tue, 6 Jun 2017 15:10:18 +0000 (23:10 +0800)
When the filesystem is force-killed in generic/019 and fsstress is
compiled with DEBUG then it's possible for check_cwd() to fail. In
this case fsstress would just die and invoking kill on its pid would
produce an error to the output file:

+./tests/generic/019: line 157: kill: (32750) - No such process

Fix this possibility by ignoring the result of the output command,
this won't affect the test coverage.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/generic/019

index 84e62f5c64bcb07c052184eaa1e4a4c76cf3992f..3b24c87ca25a16e15748124ad56ad2f98375f1d3 100755 (executable)
@@ -154,7 +154,7 @@ _workout()
            >> $seqres.full 2>&1 && \
            _fail "failed: still able to perform integrity fsync on $SCRATCH_MNT"
 
-       kill $fs_pid
+       kill $fs_pid &> /dev/null
        wait $fs_pid
        wait $fio_pid