Skip to content

Commit

Permalink
Fix del_temp test for Travis CI
Browse files Browse the repository at this point in the history
On Travis CI's Ubuntu 12.04, the error messages of `rm' displays the
path between a backtick and an apostrophe, instead of two apostrophes.
  • Loading branch information
ztombol committed Dec 6, 2016
1 parent 590d4e8 commit b1369d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/51-temp-11-temp_del.bats
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ fixtures 'temp'
[ "$status" -eq 1 ]
[ "${#lines[@]}" -eq 3 ]
[ "${lines[0]}" == '-- ERROR: temp_del --' ]
[ "${lines[1]}" == "rm: cannot remove '${path}': No such file or directory" ]
# Travis CI's Ubuntu 12.04, quotes the path with a backtick and an
# apostrophe, instead of just apostrophes.
[[ ${lines[1]} =~ 'rm: cannot remove '[\`\']"${path}': No such file or directory" ]]
[ "${lines[2]}" == '--' ]
}

Expand Down

0 comments on commit b1369d9

Please sign in to comment.