Do a safer test against the error message for a missing command

Stops tests from failing just because the line number changes
This commit is contained in:
James Dinsdale 2017-02-23 23:48:08 +00:00
parent ceba65a207
commit 0a0b6df025
No known key found for this signature in database
GPG key ID: DBCB56BD98007031

View file

@ -24,5 +24,5 @@
run a-non-existent-command
assert $state equals 127
assert $output same_as 'run:20: command not found: a-non-existent-command'
assert $output matches 'run:[0-9]+: command not found: a-non-existent-command'
}