Skip to content

Commit

Permalink
Merge pull request #4325 from chenyukang/yukang-patch-4299
Browse files Browse the repository at this point in the history
backport: Fix the regex expression for ckb's version test
  • Loading branch information
quake authored Jan 25, 2024
2 parents c76a0e1 + bac75e2 commit b08187b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/app-config/src/tests/cli.bats
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ _full_help() {
function short_version { #@test
run _short
assert_success
assert_output --regexp "^ckb [0-9.]+[-]?[a-z0-9]*$"
assert_output --regexp "^ckb [0-9.]+[-[a-z0-9]*]?$"
}

#@test "ckb --version" {
function long_version { #@test
run _long
assert_success
assert_output --regexp "^ckb [0-9.]+-.*\([0-9a-z-]+ [0-9]{4}-[0-9]{2}-[0-9]{2}\)$"
assert_output --regexp "^ckb [0-9.]+[-[a-z0-9]*]? \([0-9a-z-]+ [0-9]{4}-[0-9]{2}-[0-9]{2}\)$"
}

function help { #@test
Expand Down

0 comments on commit b08187b

Please sign in to comment.