From 0cf0fa815414eebb3e642429085fa75dda05c24d Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Sat, 11 Jun 2016 19:07:40 +0100 Subject: [PATCH] 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 Closes: #335 Approved by: giuseppe --- tests/test-sysroot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);