diff options
| author | Karel Zak <kzak@redhat.com> | 2019-08-30 15:50:07 +0200 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2019-08-30 15:50:07 +0200 |
| commit | cbf858aa085e25aa5afd1d06decaea6e14a8963f (patch) | |
| tree | b4a9e656a9b574561a03f99fc60d8d312e6c7ff3 /tests/ts/getopt/basic | |
| parent | 7837cd491a6c99aa69a31082b28a0c8b6045b7bc (diff) | |
| download | util-linux-cbf858aa085e25aa5afd1d06decaea6e14a8963f.tar.gz | |
tests: split stdout and stderr
* add $TS_ERRLOG for script stderr output
* add optional $TS_EXPECTED_ERR which points to expected/*/*.err
This change allows to keep track about stderr output from our commands
(already found bug in sfdisk...).
We do not have to depend on fragile stdout vs. stderr order (due to
different buffering semantic in different libc, etc.).
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts/getopt/basic')
| -rwxr-xr-x | tests/ts/getopt/basic | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ts/getopt/basic b/tests/ts/getopt/basic index be2928bc1..a505b89f6 100755 --- a/tests/ts/getopt/basic +++ b/tests/ts/getopt/basic @@ -41,9 +41,9 @@ while true ; do --) shift ; break ;; *) echo "Internal error!"; break;; esac -done >> $TS_OUTPUT 2>&1 +done >> $TS_OUTPUT 2>> $TS_ERRLOG -echo "Remaining arguments:" >> $TS_OUTPUT 2>&1 -for arg do echo '--> '"\`$arg'" >> $TS_OUTPUT 2>&1; done +echo "Remaining arguments:" >> $TS_OUTPUT 2>> $TS_ERRLOG +for arg do echo '--> '"\`$arg'" >> $TS_OUTPUT 2>> $TS_ERRLOG; done ts_finalize |
