Skip to content

Commit

Permalink
testcases: ar: Add TST_NEEDS_CMDS on "ar"
Browse files Browse the repository at this point in the history
In case "ar" binary is not available, the test will fail.
It should return a TCONF as we just do not have the binary.

This commit adds TST_NEEDS_CMDS macro on "ar". Thanks to that,
it will return "TCONF" and not "FAIL" when "ar" is not available.

Signed-off-by: Mylène Josserand <mylene.josserand@bootlin.com>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
  • Loading branch information
Mylène Josserand authored and pevik committed May 16, 2018
1 parent b44b38e commit 0d7baa0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions testcases/commands/ar/ar01
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@
#
# This is a basic ar command test.
#
AR="${AR:=ar}"
TST_CNT=17
TST_TESTFUNC=test
TST_NEEDS_TMPDIR=1
TST_NEEDS_CMDS="$AR"

. tst_test.sh

test1()
Expand Down

0 comments on commit 0d7baa0

Please sign in to comment.