Skip to content

Commit 7bebe57

Browse files
committed
Ensure the test is skipped
/home/travis/build/OpenSCAP/openscap/tests/probes/rpm/rpminfo/test_probes_rpminfo.sh: line 20: return: can only `return' from a function or sourced script
1 parent 6daf3c8 commit 7bebe57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/probes/rpm/rpminfo/test_probes_rpminfo.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
set -e -o pipefail
1919

20-
require "rpm" || return 255
20+
require "rpm" || exit 255
2121
A_NAME=`rpm --qf "%{NAME}\n" -qa | sort | uniq -u | sed -n '1p'`
2222
B_NAME=`rpm --qf "%{NAME}\n" -qa | sort | uniq -u | sed -n '2p'`
2323

0 commit comments

Comments
 (0)