[LTP] [PATCH] run-posix-option-group-test: replace CWD qith PWD

Vineet Gupta Vineet.Gupta1@synopsys.com
Mon Feb 29 10:04:40 CET 2016


When running LTP on a mininal Busybox + uClibc env, see lot of prints like
this:

| Usage: basename FILE [SUFFIX]
|
| Strip directory path and .SUFFIX from FILE
|
| *******************
| Testing
| *******************

This is because $CDW env variable is not provided by Busybox shell.

I understand PWD is not same as CWD, but should suffice here !

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
---
 testcases/open_posix_testsuite/bin/run-tests.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/open_posix_testsuite/bin/run-tests.sh b/testcases/open_posix_testsuite/bin/run-tests.sh
index d4bd9884efbf..5ee568775a44 100755
--- a/testcases/open_posix_testsuite/bin/run-tests.sh
+++ b/testcases/open_posix_testsuite/bin/run-tests.sh
@@ -29,7 +29,7 @@ run_test_loop() {
 
 	cat <<EOF
 *******************
-Testing $(basename $CWD)
+Testing $(basename $PWD)
 *******************
 $(printf "PASS\t\t%3d" $NUM_PASS)
 $(printf "FAIL\t\t%3d" $NUM_FAIL)
-- 
2.5.0



More information about the Ltp mailing list