From 1cefd198da32d02ba7ae737866569dd56112158c Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Thu, 17 Oct 2013 10:48:29 +0200 Subject: [PATCH] tests/ZZ_missed_irq: Fixup SOURCE_PATH handling Copy the trick from ZZ_hangman of just cd'ing into the old working directory in a subshell. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=70561 Signed-off-by: Daniel Vetter --- tests/ZZ_missed_irq | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/ZZ_missed_irq b/tests/ZZ_missed_irq index 86c0123a..a99dc80c 100755 --- a/tests/ZZ_missed_irq +++ b/tests/ZZ_missed_irq @@ -4,8 +4,10 @@ # SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )" -test $SOURCE_DIR = . && SOURCE_DIR="`pwd`" . $SOURCE_DIR/drm_lib.sh + +oldpath=`pwd` + cd $i915_dfs_path echo $SOURCE_DIR @@ -40,12 +42,12 @@ if test `cat i915_ring_test_irq` != 0x0000000f; then exit 3 fi -$SOURCE_DIR/gem_exec_big > /dev/null +(cd $oldpath; $SOURCE_DIR/gem_exec_big) > /dev/null check_for_missed_irq check_for_hang -$SOURCE_DIR/gem_exec_big > /dev/null +(cd $oldpath; $SOURCE_DIR/gem_exec_big) > /dev/null check_for_hang @@ -56,7 +58,7 @@ if test `cat i915_ring_test_irq` != 0x00000000; then exit 3 fi -$SOURCE_DIR/gem_exec_big > /dev/null +(cd $oldpath; $SOURCE_DIR/gem_exec_big) > /dev/null check_for_hang