summaryrefslogtreecommitdiff
path: root/test/pseudo-tty
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2016-12-06 18:23:13 +0100
committerAnna Henningsen <anna@addaleax.net>2016-12-12 16:11:12 +0100
commit10929f6cb6f433ef82696ca24cefc539c3ddd165 (patch)
treeb38052587a08c45464992f28a840779a6368b07c /test/pseudo-tty
parent14b0b4463e9dd2ba81e7c67b1c4a66f429ed7f0a (diff)
downloadnode-new-10929f6cb6f433ef82696ca24cefc539c3ddd165.tar.gz
test: fail for missing output files
Instead of ignoring missing `.out` files for message/pseudo-tty tests, raise an error to indicate that something is not quite right. Ref: https://github.com/nodejs/node/pull/10037 PR-URL: https://github.com/nodejs/node/pull/10150 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to 'test/pseudo-tty')
-rw-r--r--test/pseudo-tty/testcfg.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/pseudo-tty/testcfg.py b/test/pseudo-tty/testcfg.py
index 96b3025349..40396db247 100644
--- a/test/pseudo-tty/testcfg.py
+++ b/test/pseudo-tty/testcfg.py
@@ -142,8 +142,7 @@ class TTYTestConfiguration(test.TestConfiguration):
file_path = file_prefix + ".js"
output_path = file_prefix + ".out"
if not exists(output_path):
- print "Could not find %s" % output_path
- continue
+ raise Exception("Could not find %s" % output_path)
result.append(TTYTestCase(test, file_path, output_path,
arch, mode, self.context, self))
return result