Skip to content

Commit 5840167

Browse files
committed
Skip the test if the system doesn't contain any RPM packages
1 parent 29180d0 commit 5840167

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/probes/rpm/rpminfo/test_probes_rpminfo.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ 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

24+
[ -n "$A_NAME" ] || exit 255
2425

2526
test_init
2627

0 commit comments

Comments
 (0)