diff options
author | Julian Lettner <julian.lettner@gmail.com> | 2019-02-25 22:41:52 -0800 |
---|---|---|
committer | Julian Lettner <julian.lettner@apple.com> | 2019-12-11 14:39:39 -0800 |
commit | f38b543b97de150f3d6b6db395403e0e8b058595 (patch) | |
tree | 9d2bded62e653380fb0cd7d050e27da913c97081 /llvm/utils/lit/tests | |
parent | ff82315d4ec0fc96a8c581e1c9252a15bc0adaf3 (diff) | |
download | bcm5719-llvm-f38b543b97de150f3d6b6db395403e0e8b058595.tar.gz bcm5719-llvm-f38b543b97de150f3d6b6db395403e0e8b058595.zip |
[lit] Improve formatting of error messages. NFC
Diffstat (limited to 'llvm/utils/lit/tests')
-rw-r--r-- | llvm/utils/lit/tests/selecting.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/utils/lit/tests/selecting.py b/llvm/utils/lit/tests/selecting.py index 638c1088a26..9340b7db37e 100644 --- a/llvm/utils/lit/tests/selecting.py +++ b/llvm/utils/lit/tests/selecting.py @@ -6,13 +6,13 @@ # # RUN: not %{lit} %{inputs}/nonexistent 2>&1 | FileCheck --check-prefix=CHECK-BAD-PATH %s # RUN: not %{lit} %{inputs}/nonexistent --allow-empty-runs 2>&1 | FileCheck --check-prefix=CHECK-BAD-PATH %s -# CHECK-BAD-PATH: Did not disover any tests for provided path(s). +# CHECK-BAD-PATH: error: did not disover any tests for provided path(s) # Check that we exit with an error if we filter out all tests, but allow it with --allow-empty-runs. # # RUN: not %{lit} --filter 'nonexistent' %{inputs}/discovery 2>&1 | FileCheck --check-prefixes=CHECK-BAD-FILTER,CHECK-BAD-FILTER-ERROR %s # RUN: %{lit} --filter 'nonexistent' --allow-empty-runs %{inputs}/discovery 2>&1 | FileCheck --check-prefixes=CHECK-BAD-FILTER,CHECK-BAD-FILTER-ALLOW %s -# CHECK-BAD-FILTER: Filter did not match any tests (of 5 discovered). +# CHECK-BAD-FILTER: error: filter did not match any tests (of 5 discovered). # CHECK-BAD-FILTER-ERROR: Use '--allow-empty-runs' to suppress this error. # CHECK-BAD-FILTER-ALLOW: Suppressing error because '--allow-empty-runs' was specified. @@ -85,12 +85,12 @@ # RUN: %{lit} --num-shards 100 --run-shard 6 %{inputs}/discovery >%t.out 2>%t.err # RUN: FileCheck --check-prefix=CHECK-SHARD-BIG-ERR2 < %t.err %s # CHECK-SHARD-BIG-ERR2: note: Selecting shard 6/100 = size 0/5 = tests #(100*k)+6 = [] -# CHECK-SHARD-BIG-ERR2: Shard does not contain any tests. Consider decreasing the number of shards. +# CHECK-SHARD-BIG-ERR2: warning: shard does not contain any tests. Consider decreasing the number of shards. # # RUN: %{lit} --num-shards 100 --run-shard 50 %{inputs}/discovery >%t.out 2>%t.err # RUN: FileCheck --check-prefix=CHECK-SHARD-BIG-ERR3 < %t.err %s # CHECK-SHARD-BIG-ERR3: note: Selecting shard 50/100 = size 0/5 = tests #(100*k)+50 = [] -# CHECK-SHARD-BIG-ERR3: Shard does not contain any tests. Consider decreasing the number of shards. +# CHECK-SHARD-BIG-ERR3: warning: shard does not contain any tests. Consider decreasing the number of shards. # Check that range constraints are enforced |