Skip to content

Commit 764bbc0

Browse files
committed
bless cargo miri doctest execution
1 parent 24fd4fb commit 764bbc0

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

test-cargo-miri/run-test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def cargo_miri(cmd, quiet = True, targets = None):
3737

3838
def normalize_stdout(str):
3939
str = str.replace("src\\", "src/") # normalize paths across platforms
40-
str = re.sub("finished in \\d+\\.\\d\\ds", "finished in $TIME", str) # the time keeps changing, obviously
40+
str = re.sub("\\b\\d+\\.\\d+s\\b", "$TIME", str) # the time keeps changing, obviously
4141
return str
4242

4343
def check_output(actual, path, name):

test-cargo-miri/test.default.stdout.ref

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ running 5 tests
1414
.....
1515
test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
1616

17+
all doctests ran in $TIME; merged doctests compilation took $TIME

test-cargo-miri/test.filter.stdout.ref

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ running 0 tests
1515

1616
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 5 filtered out; finished in $TIME
1717

18+
all doctests ran in $TIME; merged doctests compilation took $TIME

test-cargo-miri/test.multiple_targets.stdout.ref

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ running 5 tests
2525
.....
2626
test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
2727

28+
all doctests ran in $TIME; merged doctests compilation took $TIME
2829

2930
running 5 tests
3031
.....
3132
test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
3233

34+
all doctests ran in $TIME; merged doctests compilation took $TIME

0 commit comments

Comments
 (0)