Re: make test

3 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: make test

From: Andreas Schwab <hidden>
Date: 2016-06-15 22:55:02

Johannes Sixt [off-list ref] writes:
Am 10/15/2012 13:58, schrieb Joachim Schmitz:
quoted
++ mkdir failing-cleanup
++ cd failing-cleanup
++ cat
++ chmod +x failing-cleanup.sh
++ test_must_fail ./failing-cleanup.sh
+ eval_ret=1
I wonder why the log does not show the commands of function
test_must_fail.
That's because stderr is redirected.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

RE: make test

From: Joachim Schmitz <hidden>
Date: 2016-06-15 22:55:02

From: Andreas Schwab [mailto:schwab@linux-m68k.org]
Sent: Monday, October 15, 2012 2:35 PM
To: Johannes Sixt
Cc: Joachim Schmitz; git@vger.kernel.org
Subject: Re: make test

Johannes Sixt [off-list ref] writes:
quoted
Am 10/15/2012 13:58, schrieb Joachim Schmitz:
quoted
++ mkdir failing-cleanup
++ cd failing-cleanup
++ cat
++ chmod +x failing-cleanup.sh
++ test_must_fail ./failing-cleanup.sh
+ eval_ret=1
I wonder why the log does not show the commands of function
test_must_fail.
That's because stderr is redirected.
cat err
++ ./failing-cleanup.sh
++ exit_code=0
++ test 0 = 0
++ echo 'test_must_fail: command succeeded: ./failing-cleanup.sh'
test_must_fail: command succeeded: ./failing-cleanup.sh
++ return 1

RE: make test

From: Joachim Schmitz <hidden>
Date: 2016-06-15 22:55:03

From: Joachim Schmitz [mailto:jojo@schmitz-digital.de]
Sent: Monday, October 15, 2012 3:18 PM
To: 'Andreas Schwab'; 'Johannes Sixt'
Cc: 'git@vger.kernel.org'
Subject: RE: make test
quoted
From: Andreas Schwab [mailto:schwab@linux-m68k.org]
Sent: Monday, October 15, 2012 2:35 PM
To: Johannes Sixt
Cc: Joachim Schmitz; git@vger.kernel.org
Subject: Re: make test

Johannes Sixt [off-list ref] writes:
quoted
Am 10/15/2012 13:58, schrieb Joachim Schmitz:
quoted
++ mkdir failing-cleanup
++ cd failing-cleanup
++ cat
++ chmod +x failing-cleanup.sh
++ test_must_fail ./failing-cleanup.sh
+ eval_ret=1
I wonder why the log does not show the commands of function
test_must_fail.
That's because stderr is redirected.
cat err
++ ./failing-cleanup.sh
++ exit_code=0
++ test 0 = 0
++ echo 'test_must_fail: command succeeded: ./failing-cleanup.sh'
test_must_fail: command succeeded: ./failing-cleanup.sh
++ return 1
That test (as well as quite a few more) do pass when using bash rather than our sh (which really is a ksh)

Bye, Jojo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help