run-posix-option-group-test: replace CWD qith PWD
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 !
Signed-off-by Vineet Gupta <[email protected]>
--- 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
@@ -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
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]