Commit 096da33c authored by Leo's avatar Leo

Adjusts tests for braced-variable

parent 1150c1f6
......@@ -760,7 +760,7 @@ is_travis() {
run $cmd $apkbuild
[[ $status -eq 1 ]]
assert_match "${lines[0]}" "\[AL32\].*:.*unnecesary usage of braces"
assert_match "${lines[0]}" "\[AL32\].*:.*unnecesary usage of braces: ${pypi_name}"
}
@test 'invalid variable bracing due to end of line' {
......@@ -773,8 +773,8 @@ is_travis() {
run $cmd $apkbuild
[[ $status -eq 1 ]]
assert_match "${lines[0]}" "\[AL32\].*:.*unnecesary usage of braces"
assert_match "${lines[1]}" "\[AL32\].*:.*unnecesary usage of braces"
assert_match "${lines[0]}" "\[AL32\].*:.*unnecesary usage of braces: ${pypi_name}"
assert_match "${lines[1]}" "\[AL32\].*:.*unnecesary usage of braces: ${pypi_name}"
}
@test 'invalid variable bracing due to double-quotes' {
......@@ -787,8 +787,8 @@ is_travis() {
run $cmd $apkbuild
[[ $status -eq 1 ]]
assert_match "${lines[0]}" "\[AL32\].*:.*unnecesary usage of braces"
assert_match "${lines[1]}" "\[AL32\].*:.*unnecesary usage of braces"
assert_match "${lines[0]}" "\[AL32\].*:.*unnecesary usage of braces: ${pypi_name}"
assert_match "${lines[1]}" "\[AL32\].*:.*unnecesary usage of braces: ${pypi_name}"
}
@test 'valid variable bracing with local keyword and underscore' {
......@@ -822,7 +822,7 @@ is_travis() {
run $cmd $apkbuild
[[ $status -eq 1 ]]
assert_match "${lines[0]}" "\[AL32\].*:.*unnecesary usage of braces"
assert_match "${lines[0]}" "\[AL32\].*:.*unnecesary usage of braces: ${pypi_name}"
}
@test 'valid variable bracing via parameter substitution' {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment