Skip to content

Commit ddf478b

Browse files
authored
Fix integration tests on release sources (#651)
Fixes #646
2 parents af10fa0 + 94987b8 commit ddf478b

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ jobs:
8282

8383
- name: Run tests
8484
run: cargo test --locked
85+
86+
- name: Run tests in production mode
87+
run: cargo test --locked --release
8588

8689
- name: Build debug binary
8790
run: cargo build --locked

tests/cli_integration_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ mod cli_integration_test {
1313
// Assert
1414
assertion
1515
.success()
16-
.stdout(is_match("^cotp \\d+\\.\\d+\\.\\d+-DEBUG-.+").unwrap())
16+
.stdout(is_match("^cotp \\d+\\.\\d+\\.\\d+(?:-DEBUG-.+)?").unwrap())
1717
.stderr(is_empty());
1818
}
1919

0 commit comments

Comments
 (0)