Skip to content

Commit a948d6f

Browse files
committed
adjust error message detection in hook tests
1 parent 1c2e94d commit a948d6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_run_hook.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ test_virtualenvwrapper_run_hook_permissions() {
5757
echo "echo run $@ >> \"$TMPDIR/catch_output\"" >> "$WORKON_HOME/prermvirtualenv"
5858
chmod 0444 "$WORKON_HOME/prermvirtualenv"
5959
touch "$TMPDIR/catch_output"
60-
error=$(virtualenvwrapper_run_hook "pre_rmvirtualenv" "foo" 2>&1 | grep "could not run" | cut -f2- -d'[')
60+
error=$(virtualenvwrapper_run_hook "pre_rmvirtualenv" "foo" 2>&1 | grep "could not run" | cut -f2- -d'[' | cut -f1 -d:)
6161
output=$(cat "$TMPDIR/catch_output")
6262
expected=""
6363
assertSame "$expected" "$output"

0 commit comments

Comments
 (0)