Skip to content

Commit b7e70e2

Browse files
committed
test/system: Tighten the regular expression used to check the version
The MAJOR version will always be 0, the MINOR version can't be 0 after the release of 0.1.0; until 1.0.0 or 1.0 is released, which won't happen in the short-term future. Similarly, the MICRO version can't be 0 after the release of 0.1.1, until 0.2.0 is released. Future releases will default to not having a MICRO version and use a MAJOR.MINOR versioning scheme. A MICRO version will be reserved for the same purposes that a NANO version was reserved for until now, and it will never be 0. Tighten the regular expression used to check the version to match this present reality. It can be revisited when 1.0 is eventually released. #1703
1 parent e2dda19 commit b7e70e2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/system/001-version.bats

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# shellcheck shell=bats
22
#
3-
# Copyright © 2019 – 2024 Red Hat, Inc.
3+
# Copyright © 2019 – 2025 Red Hat, Inc.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -29,7 +29,7 @@ setup() {
2929
run --separate-stderr "$TOOLBX" --version
3030

3131
assert_success
32-
assert_output --regexp '^toolbox version [0-9]+\.[0-9]+(\.[0-9]+)?$'
32+
assert_output --regexp '^toolbox version 0\.[1-9][0-9]*(\.[1-9][0-9]*)?$'
3333
assert [ ${#lines[@]} -eq 1 ]
3434

3535
# shellcheck disable=SC2154

0 commit comments

Comments
 (0)