securebits: fix running of testcases
PATCH 1/1 securebits: fix running of testcases
Exit as soon as one breaks. Heck, clean it up by letting set -e do it for me.
Signed-off-by Serge Hallyn <[email protected]>
--- .../kernel/security/securebits/run_securebits.sh | 18 +++++------------- 1 files changed, 5 insertions(+), 13 deletions(-)
testcases/kernel/security/securebits/run_securebits.sh +5 -13
@@ -1,20 +1,12 @@ #!/bin/sh +set -e + echo "testing keepcaps" check_keepcaps 1 -tmp=$? -if [ $tmp -ne 0 ]; then - exit_code=$tmp -fi + check_keepcaps 2 -tmp=$? -if [ $tmp -ne 0 ]; then - exit_code=$tmp -fi + check_keepcaps 3 -tmp=$? -if [ $tmp -ne 0 ]; then - exit_code=$tmp -fi -exit $exit_code +exit 0
Signature · 13 lines
1.7.1 ------------------------------------------------------------------------------ Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list