[PATCH] testsuite: process extra options without exec

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Commit 399c43889 (testsuite: get options from env too) allowed
the testsuite to takes extra options from the environment but
did it in a crude way involving exec.

Change this by using 'set --' instead of doing an 'exec'.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
---
 validation/test-suite | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/validation/test-suite b/validation/test-suite
index 5655ac40b..f1d3301a6 100755
--- a/validation/test-suite
+++ b/validation/test-suite
@@ -2,13 +2,6 @@
 
 #set -x
 
-## allow flags from environment
-flags="$SPARSE_TEST_FLAGS"
-if [ ! -z "$flags" ]; then
-	unset SPARSE_TEST_FLAGS
-	exec "$0" $flags "$@"
-fi
-
 cd $(dirname "$0")
 
 default_path=".."
@@ -513,6 +506,10 @@ _EOF
 	return 0
 }
 
+## allow flags from environment
+set -- $SPARSE_TEST_FLAGS "$@"
+
+## process the flags
 while [ "$#" -gt "0" ]; do
 	case "$1" in
 	-a|--abort)
-- 
2.15.0

--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux