[PATCH] D136469: [llvm-lit][test] Fix regex to capture scientific notation
Owen Reynolds via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 24 07:38:32 PDT 2022
gbreynoo updated this revision to Diff 470148.
gbreynoo added a comment.
Updated after jdenny's suggested regex change.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136469/new/
https://reviews.llvm.org/D136469
Files:
llvm/utils/lit/tests/test-output-micro.py
llvm/utils/lit/tests/test-output.py
Index: llvm/utils/lit/tests/test-output.py
===================================================================
--- llvm/utils/lit/tests/test-output.py
+++ llvm/utils/lit/tests/test-output.py
@@ -7,7 +7,7 @@
# CHECK-NEXT: "tests": [
# CHECK-NEXT: {
# CHECK-NEXT: "code": "PASS",
-# CHECK-NEXT: "elapsed": {{[0-9.]+}},
+# CHECK-NEXT: "elapsed": {{[-+0-9.eE]+}},
# CHECK-NEXT: "metrics": {
# CHECK-NEXT: "value0": 1,
# CHECK-NEXT: "value1": 2.3456
Index: llvm/utils/lit/tests/test-output-micro.py
===================================================================
--- llvm/utils/lit/tests/test-output-micro.py
+++ llvm/utils/lit/tests/test-output-micro.py
@@ -39,7 +39,7 @@
# CHECK-NEXT: },
# CHECK-NEXT: {
# CHECK-NEXT: "code": "PASS",
-# CHECK-NEXT: "elapsed": {{[0-9.]+}},
+# CHECK-NEXT: "elapsed": {{[-+0-9.eE]+}},
# CHECK-NEXT: "metrics": {
# CHECK-NEXT: "value0": 1,
# CHECK-NEXT: "value1": 2.3456
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136469.470148.patch
Type: text/x-patch
Size: 976 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221024/eb1bab12/attachment.bin>
More information about the llvm-commits
mailing list