Tests non-existing plugin installation

This commit is contained in:
Bruno Sutic
2015-08-02 18:38:44 +02:00
parent 7ff8de38a4
commit d19c187dcc
3 changed files with 67 additions and 1 deletions

View File

@ -7,7 +7,7 @@ script_run_helper() {
local script="$1"
local expected_output="$2"
local expected_exit_code="${3:-0}"
$script |
$script 2>&1 |
grep "$expected_output" >/dev/null 2>&1 && # grep -q flag quits the script early
[ "${PIPESTATUS[0]}" -eq "$expected_exit_code" ]
}