diff options
author | Simon McVittie <smcv@debian.org> | 2016-06-11 19:07:40 +0100 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2016-06-12 11:26:58 +0000 |
commit | 0cf0fa815414eebb3e642429085fa75dda05c24d (patch) | |
tree | 91ea09ac8213033dd96e052ebc9a9e31fe9a36ab /tests/test-sysroot.js | |
parent | d258b124a2e062a3b1adc7f6a7baef9d276020c4 (diff) | |
download | ostree-0cf0fa815414eebb3e642429085fa75dda05c24d.tar.gz |
test-sysroot.js: set "strict mode" when sourcing libtest.sh
As with the C tests in commit 08580118, this makes sure the test
fails as soon as something goes wrong.
Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #335
Approved by: giuseppe
Diffstat (limited to 'tests/test-sysroot.js')
-rw-r--r-- | tests/test-sysroot.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-sysroot.js b/tests/test-sysroot.js index 9468d2fb..7c31659d 100644 --- a/tests/test-sysroot.js +++ b/tests/test-sysroot.js @@ -37,7 +37,7 @@ function libtestExec(shellCode) { let testdatadir = GLib.getenv("G_TEST_SRCDIR"); let libtestPath = GLib.build_filenamev([testdatadir, 'libtest.sh']) let proc = GSystem.Subprocess.new_simple_argv(['bash', '-c', - '. ' + GLib.shell_quote(libtestPath) + '; ' + shellCode], + 'set -xeuo pipefail; . ' + GLib.shell_quote(libtestPath) + '; ' + shellCode], GSystem.SubprocessStreamDisposition.INHERIT, GSystem.SubprocessStreamDisposition.INHERIT, null); |