From: "Serge E. Hallyn" <serge.hallyn@canonical.com>
To: ltp-list@lists.sourceforge.net
Subject: [LTP] [PATCH 1/1] securebits: fix running of testcases
Date: Wed, 20 Oct 2010 08:25:05 -0500 [thread overview]
Message-ID: <20101020132505.GA5985@hallyn.com> (raw)
Exit as soon as one breaks. Heck, clean it up by letting
set -e do it for me.
Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
---
.../kernel/security/securebits/run_securebits.sh | 18 +++++-------------
1 files changed, 5 insertions(+), 13 deletions(-)
diff --git a/testcases/kernel/security/securebits/run_securebits.sh b/testcases/kernel/security/securebits/run_securebits.sh
index 4d9e272..19df70c 100644
--- a/testcases/kernel/security/securebits/run_securebits.sh
+++ b/testcases/kernel/security/securebits/run_securebits.sh
@@ -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
--
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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
reply other threads:[~2010-10-20 13:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101020132505.GA5985@hallyn.com \
--to=serge.hallyn@canonical.com \
--cc=ltp-list@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox