Fix tests

pull/22/head
Dominik Ritter 6 years ago
parent 24818eff79
commit a72a82b4b1

@ -500,7 +500,7 @@ function testBranchNameScriptingVulnerability() {
git add . 2>/dev/null git add . 2>/dev/null
git commit -m "Initial commit" >/dev/null git commit -m "Initial commit" >/dev/null
assertEquals "%K{002} %F{000} %f%F{000} \$(./evil_script.sh) %k%F{002}%f " "$(build_left_prompt)" assertEquals '%K{002} %F{000} $(./evil_script.sh) %k%F{002}%f ' "$(build_left_prompt)"
} }
source shunit2/shunit2 source shunit2/shunit2

@ -214,7 +214,7 @@ function testBranchNameScriptingVulnerability() {
hg add . >/dev/null hg add . >/dev/null
hg commit -m "Initial commit" >/dev/null hg commit -m "Initial commit" >/dev/null
assertEquals "%K{002} %F{000} \$(./evil_script.sh) %k%F{002}%f " "$(build_left_prompt)" assertEquals '%K{002} %F{000} $(./evil_script.sh) %k%F{002}%f ' "$(build_left_prompt)"
} }
source shunit2/shunit2 source shunit2/shunit2

Loading…
Cancel
Save