diff options
author | Peter Goldsborough <peter@goldsborough.me> | 2018-03-13 15:53:43 -0700 |
---|---|---|
committer | Sam Gross <colesbury@gmail.com> | 2018-03-13 18:53:43 -0400 |
commit | 16fa12214d061d020753c2fb0861b03a304027f7 (patch) | |
tree | fcb0655f8d53841e5250e6d6b3cfa77e9f2023a2 /test/run_test.py | |
parent | 11444a7273056999079eb2557d8e1b4bae0f9026 (diff) | |
download | pytorch-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-x | test/run_test.py | 2 |
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') |