Fixing the runpidnstest.sh in containers/pidns, to handle the return code
properly.
Also removed the obsolete file runtests_noltp.sh, which is no longer required.
Regards
Veerendra C
Signed-Off-By: Veerendra <[EMAIL PROTECTED]>
diff -uprN testcases/kernel/containers/pidns.old/runpidnstest.sh testcases/kernel/containers/pidns/runpidnstest.sh
--- testcases/kernel/containers/pidns.old/runpidnstest.sh 2008-10-16 17:28:16.000000000 +0530
+++ testcases/kernel/containers/pidns/runpidnstest.sh 2008-10-16 17:18:55.000000000 +0530
@@ -21,23 +21,27 @@
exit_code=0
pidns01
-if [ $? -ne 0 ]; then
- exit_code="$?"
+rc=$?
+if [ $rc -ne 0 ]; then
+ exit_code=$rc
exit $exit_code
fi
pidns02
-if [ $? -ne 0 ]; then
- exit_code="$?"
+rc=$?
+if [ $rc -ne 0 ]; then
+ exit_code=$rc
exit $exit_code
fi
pidns03
-if [ $? -ne 0 ]; then
- exit_code="$?"
+rc=$?
+if [ $rc -ne 0 ]; then
+ exit_code=$rc
exit $exit_code
fi
pidns04
-if [ $? -ne 0 ]; then
- exit_code="$?"
+rc=$?
+if [ $rc -ne 0 ]; then
+ exit_code=$rc
exit $exit_code
fi
exit $exit_code
diff -uprN testcases/kernel/containers/pidns.old/runtests_noltp.sh testcases/kernel/containers/pidns/runtests_noltp.sh
--- testcases/kernel/containers/pidns.old/runtests_noltp.sh 2008-09-30 18:06:38.000000000 +0530
+++ testcases/kernel/containers/pidns/runtests_noltp.sh 1970-01-01 05:30:00.000000000 +0530
@@ -1,39 +0,0 @@
-################################################################################
-## ##
-## Copyright (c) International Business Machines Corp., 2007 ##
-## ##
-## This program is free software; you can redistribute it and#or modify ##
-## it under the terms of the GNU General Public License as published by ##
-## the Free Software Foundation; either version 2 of the License, or ##
-## (at your option) any later version. ##
-## ##
-## This program is distributed in the hope that it will be useful, but ##
-## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
-## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
-## for more details. ##
-## ##
-## You should have received a copy of the GNU General Public License ##
-## along with this program; if not, write to the Free Software ##
-## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ##
-## ##
-################################################################################
-
-#!/bin/sh
-
-exit_code=0
-./pidns01_noltp
-if [ $? -ne 0 ]; then
- exit_code=$?
- exit $exit_code
-fi
-./pidns02_noltp
-if [ $? -ne 0 ]; then
- exit_code=$?
- exit $exit_code
-fi
-./pidns03_noltp
-if [ $? -ne 0 ]; then
- exit_code=$?
- exit $exit_code
-fi
-exit $exit_code
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list