Skip to contentSkip to conversation

runfstests.sh: fix error exit code

PATCH Cyril Hrubis 1 participant 1 message Feb 8, 2012 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi!

Quoted 12 lines

The exit code of runfstests.sh should be not 0 when aio02 test fail.

---
 testcases/kernel/io/aio/aio02/runfstests.sh |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
testcases/kernel/io/aio/aio02/runfstests.sh +0 -0
index 07a40ad..005299a 100755

testcases/kernel/io/aio/aio02/runfstests.sh echo "Pass: $passes Fail: $fails" · line 60

Quoted 5 lines
testcases/kernel/io/aio/aio02/runfstests.sh +2 -0
@@ -56,3 +56,5 @@ echo "Pass: $passes Fail: $fails"
 echo "Test run complete at" `date`
 
 rm -rf testdir
+
+exit $fails

Good catch, however the only thing that the script does is creating temporary directory, which could be easily done withing the test itself by using tst_tmpdir(), then we could drop this script and run the testcase directly...

Signature · 13 lines
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list