]> git.proxmox.com Git - mirror_lxcfs.git/blobdiff - tests/test_proc
tests: Fix return value
[mirror_lxcfs.git] / tests / test_proc
index 0b114d164fbdc1d916d097fd0bb88f80a0a61aba..0c428923beac759016e191bf8e1a84811c08472d 100755 (executable)
@@ -3,8 +3,7 @@
 PASS=0
 
 cleanup() {
-    [ "$PASS" = "1" ] || echo FAIL
-    exit 1
+    [ "$PASS" = "1" ] || (echo FAIL && exit 1)
 }
 
 trap cleanup EXIT HUP INT TERM