Skip to contentSkip to conversation

run-posix-option-group-test: replace CWD qith PWD

PATCH New Vineet Gupta 2 participants 2 messages Feb 29, 2016 – Mar 2, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 run-posix-option-group-test: replace CWD qith PWD

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 !

---
 testcases/open_posix_testsuite/bin/run-tests.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/open_posix_testsuite/bin/run-tests.sh +1 -1
index d4bd9884efbf..5ee568775a44 100755
@@ -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)
Signature · 1 line
2.5.0
#1 lore raw

PATCH 1/1 run-posix-option-group-test: replace CWD qith PWD

Hi!

Quoted 3 lines

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

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

Actually this looks like a typo to me. Since there is no $CWD in bash either (there is one in csh though).

I'm getting this with bash:

basename: missing operand
Try 'basename --help' for more information.

So I've pushed the patch with a bit different changelog.

Signature · 2 lines
Cyril Hrubis
[email protected]