Skip to content

Commit bac7f3e

Browse files
committed
[Change] tests: bump version-tracking assertions 2.0.1 -> 2.0.2
Three version-tracking BATS assertions hardcoded the prior release string and failed after the 2.0.2 cut: - tests/17-version.bats: VERSION file content and `maldet --help` output partial-match on the banner version - tests/01-install-cli.bats: `maldet -v` / `--version` partial-match Fixture data carrying historical `2.0.1` markers (tests/40-session-index.bats session.index records, tests/30-session-tsv.bats scanner_ver field, tests/22-updates.bats update-channel fixtures) intentionally preserved — those assert correct parsing/handling of historical version metadata, not the running version of LMD. Verified: deb12 + rocky9 both 1080/1080 on freedom-local Docker (anvil unreachable at run time).
1 parent 1bc3e14 commit bac7f3e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

tests/01-install-cli.bats

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ setup_file() {
252252
@test "maldet -v and --version both show version" {
253253
run maldet -v
254254
assert_success
255-
assert_output --partial "2.0.1"
255+
assert_output --partial "2.0.2"
256256
run maldet --version
257257
assert_success
258-
assert_output --partial "2.0.1"
258+
assert_output --partial "2.0.2"
259259
}

tests/17-version.bats

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ setup_file() {
1111

1212
@test "VERSION file contains current version" {
1313
run cat "$LMD_INSTALL/VERSION"
14-
assert_output --partial "2.0.1"
14+
assert_output --partial "2.0.2"
1515
}
1616

1717
@test "maldet reports correct version" {
1818
run maldet --help
1919
assert_success
20-
assert_output --partial "v2.0.1"
20+
assert_output --partial "v2.0.2"
2121
}
2222

0 commit comments

Comments
 (0)