Skip to contentSkip to conversation

master - tests: skip test when gcore cannot catch securetest

PATCH Zdenek Kabelac 1 participant 1 message Sep 1, 2020

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=ada5728c72e4620c54e4786f31ca5e45cf75d1b0
Commit:        ada5728c72e4620c54e4786f31ca5e45cf75d1b0
Parent:        bc13c7d2469d1c3fc1f8d76f9f93c9d594496bf0
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Tue Sep 1 21:39:47 2020 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Tue Sep 1 23:40:24 2020 +0200

tests: skip test when gcore cannot catch securetest

---
 test/shell/dmsecuretest.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
test/shell/dmsecuretest.sh +2 -1
index 144b1f4ae..6fbdb893c 100644
@@ -45,7 +45,8 @@ sleep .5
 dmsetup status "$DMTEST"
 
 # generate core file for running&sleeping binary
-gcore "$PID" | tee out
+gcore "$PID" | tee out || skip
+
 # check we capture core while  dmsecuretest was already sleeping
 grep "nanosleep" out || grep kernel_vsyscall out
 kill "$PID" || true