summaryrefslogtreecommitdiff
path: root/test/run_test.py
diff options
context:
space:
mode:
authorPeter Goldsborough <peter@goldsborough.me>2018-03-13 15:53:43 -0700
committerSam Gross <colesbury@gmail.com>2018-03-13 18:53:43 -0400
commit16fa12214d061d020753c2fb0861b03a304027f7 (patch)
treefcb0655f8d53841e5250e6d6b3cfa77e9f2023a2 /test/run_test.py
parent11444a7273056999079eb2557d8e1b4bae0f9026 (diff)
downloadpytorch-16fa12214d061d020753c2fb0861b03a304027f7.tar.gz
pytorch-16fa12214d061d020753c2fb0861b03a304027f7.tar.bz2
pytorch-16fa12214d061d020753c2fb0861b03a304027f7.zip
raise RuntimeError on test failure (#5754)
Diffstat (limited to 'test/run_test.py')
-rwxr-xr-xtest/run_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/run_test.py b/test/run_test.py
index 26fcfb869d..16754f8638 100755
--- a/test/run_test.py
+++ b/test/run_test.py
@@ -227,7 +227,7 @@ def main():
print('Running {} ...'.format(test_module))
handler = CUSTOM_HANDLERS.get(test, run_test)
if not handler(python, test_module, test_directory, options.verbose):
- break
+ raise RuntimeError('{} failed!'.format(test_module))
if options.coverage:
shell('coverage combine')