diff options
-rwxr-xr-x | src/compiler/glsl/glcpp/tests/glcpp_test.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/compiler/glsl/glcpp/tests/glcpp_test.py b/src/compiler/glsl/glcpp/tests/glcpp_test.py index cdc63b3ac2..8ac5d7cb0a 100755 --- a/src/compiler/glsl/glcpp/tests/glcpp_test.py +++ b/src/compiler/glsl/glcpp/tests/glcpp_test.py @@ -119,6 +119,9 @@ def test_unix(args): for l in diff: print(l, file=sys.stderr) + if not total: + raise Exception('Could not find any tests.') + print('{}/{}'.format(passed, total), 'tests returned correct results') return total == passed @@ -155,6 +158,9 @@ def _replace_test(args, replace): for l in diff: print(l, file=sys.stderr) + if not total: + raise Exception('Could not find any tests.') + print('{}/{}'.format(passed, total), 'tests returned correct results') return total == passed @@ -197,6 +203,9 @@ def test_valgrind(args): print('FAIL') print(log, file=sys.stderr) + if not total: + raise Exception('Could not find any tests.') + print('{}/{}'.format(passed, total), 'tests returned correct results') return total == passed |