]> arthur.barton.de Git - bup.git/commit
test-web: redirect stdio to make test work standalone
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 4 Aug 2020 14:49:36 +0000 (16:49 +0200)
committerRob Browning <rlb@defaultvalue.org>
Sat, 19 Dec 2020 22:32:04 +0000 (16:32 -0600)
commit0bdebc810e33855fefe7d86e688f9e80ce1ae766
treec75001076a780c9fd4d787ab479375a17609d629
parenta97b15649e7e7d64db99e1e34e2fe428a404cc9f
test-web: redirect stdio to make test work standalone

Python (at least 3) behaves differently if somehow
stdio is connected to the terminal, and external
SIGTERM then doesn't cause the same behaviour as
actually pressing Ctrl-C. Redirect the output to
a file to make the test run standalone.

Print the file if any errors occur so that if there's
anything interesting in there, we can see it.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
test/ext/test-web