Commit 189f46a3 authored by lamby's avatar lamby Committed by intrigeri
Browse files

run_test_suite: Don't try and use XVFB_PID if it's not defined (refs: #15730).

parent a0aef694
......@@ -142,7 +142,10 @@ next_free_display() {
}
test_suite_cleanup() {
(kill -0 ${XVFB_PID} 2>/dev/null && kill ${XVFB_PID}) || /bin/true
if [ -n "${XVFB_PID:-}" ]; then
(kill -0 ${XVFB_PID} 2>/dev/null && kill ${XVFB_PID}) || /bin/true
fi
return $?
}
start_xvfb() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment