All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] run-posix-option-group-test: replace CWD qith PWD
@ 2016-02-29  9:04 Vineet Gupta
  2016-03-02 13:19 ` Cyril Hrubis
  0 siblings, 1 reply; 2+ messages in thread
From: Vineet Gupta @ 2016-02-29  9:04 UTC (permalink / raw)
  To: ltp

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [LTP] [PATCH] run-posix-option-group-test: replace CWD qith PWD
  2016-02-29  9:04 [LTP] [PATCH] run-posix-option-group-test: replace CWD qith PWD Vineet Gupta
@ 2016-03-02 13:19 ` Cyril Hrubis
  0 siblings, 0 replies; 2+ messages in thread
From: Cyril Hrubis @ 2016-03-02 13:19 UTC (permalink / raw)
  To: ltp

Hi!
> 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.

-- 
Cyril Hrubis
chrubis@suse.cz

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-03-02 13:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-29  9:04 [LTP] [PATCH] run-posix-option-group-test: replace CWD qith PWD Vineet Gupta
2016-03-02 13:19 ` Cyril Hrubis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.