2
0
mirror of https://github.com/kazhala/dotbare synced 2024-11-04 06:00:45 +00:00

I don't know why the fuck it is still failing

This commit is contained in:
kevin zhuang 2020-06-23 20:35:05 +10:00
parent d13202f1a6
commit 15438bf7a3
2 changed files with 3 additions and 5 deletions

View File

@ -48,17 +48,17 @@ stage_modified_file() {
@test "fadd stage selected file" {
run stage_selected_file
[ "${status}" -eq 128 ]
[[ "${lines[0]}" =~ "fatal: pathspec 'searchfile' did not match any files" ]]
[ "${lines[0]}" = "fatal: pathspec 'searchfile' did not match any files" ]
}
@test "fadd stage selected dir" {
run stage_selected_dir
[ "${status}" -eq 128 ]
[[ "${lines[0]}" =~ "fatal: pathspec 'searchdir' did not match any files" ]]
[ "${lines[0]}" = "fatal: pathspec 'searchdir' did not match any files" ]
}
@test "fadd stage modified file" {
run stage_modified_file
[ "${status}" -eq 128 ]
[[ "${lines[0]}" =~ "fatal: pathspec '$HOME/modifiedfile' did not match any files" ]]
[ "${lines[0]}" = "fatal: pathspec '$HOME/modifiedfile' did not match any files" ]
}

View File

@ -42,8 +42,6 @@ checkout_selected_file() {
@test "fchekcout branch" {
run checkout_branch
echo "${status}" >&3
echo "${output}" >&3
result=$(echo "${output}" | tr '`' "'")
[ "${status}" -eq 129 ]
[[ "${result}" =~ "error: unknown option 'branch'" ]]