question about test suite regarding stderr/stdout
Hi,
if you do this grep in util-linux
git grep '2>&1 >> $TS_OUTPUT' tests/ts
then you find 45 lines like this
$TS_CMD_MKCRAMFS -n $LABEL $IMAGE_SRC $IMAGE_PATH 2>&1 >> $TS_OUTPUT
which means that these warnings go to make's output but not to $TS_OUTPUT.
I'm not sure whether this is really always wanted. For me it often looks like a typo which should be ">> $TS_OUTPUT 2>&1" instead. Of course could also be that it's really wanted as is to ignore stderr of too verbose commands.
Could somebody please check this too?
I'v had some cases where I would have liked to see that stderr in test diff instead of build log. Moreover because of parallel tests it can be difficult to find out which warning belongs to which particular test.
cu,
Rudi
Quoted 14 lines · Ruediger Meier
if you do this grep in util-linux
git grep '2>&1 >> $TS_OUTPUT' tests/tsthen you find 45 lines like this
$TS_CMD_MKCRAMFS -n $LABEL $IMAGE_SRC $IMAGE_PATH 2>&1 >> $TS_OUTPUTwhich means that these warnings go to make's output but not to $TS_OUTPUT.
I'm not sure whether this is really always wanted. For me it often looks like a typo which should be ">> $TS_OUTPUT 2>&1" instead. Of course could also be that it's really wanted as is to ignore stderr of too verbose commands.
Quoted 4 lines
Could somebody please check this too?
I'v had some cases where I would have liked to see that stderr in test diff instead of build log. Moreover because of parallel tests it can be difficult to find out which warning belongs to which particular test.
Hi Rudi,
Before parallel tests sending messages to stdout was OK, but now things has changed and I think directing all messages to $TS_OUTPUT is better option.
Signature · 2 lines
Sami Kerola http://www.iki.fi/kerolasa/
Karel Zak
maintainerQuoted 21 lines · Sami Kerola
Quoted 15 lines · Ruediger Meier
if you do this grep in util-linux
git grep '2>&1 >> $TS_OUTPUT' tests/tsthen you find 45 lines like this
$TS_CMD_MKCRAMFS -n $LABEL $IMAGE_SRC $IMAGE_PATH 2>&1 >> $TS_OUTPUTwhich means that these warnings go to make's output but not to $TS_OUTPUT.
I'm not sure whether this is really always wanted. For me it often looks like a typo which should be ">> $TS_OUTPUT 2>&1" instead. Of course could also be that it's really wanted as is to ignore stderr of too verbose commands.
Quoted 4 lines
Could somebody please check this too?
I'v had some cases where I would have liked to see that stderr in test diff instead of build log. Moreover because of parallel tests it can be difficult to find out which warning belongs to which particular test.
Quoted 5 lines
Hi Rudi,
Before parallel tests sending messages to stdout was OK, but now things has changed and I think directing all messages to $TS_OUTPUT is better option.
That's usually correct and wanted, but note that some utils generate non-generic and irrelevant messages on stdout (for example messages with device names). You cannot log such stuff to $TS_OUTPUT, so sometimes it's better to rely on stderr only and ignore stdout.
Karel
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com