summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2018-03-14 17:59:08 -0700
committerPetri Latvala <petri.latvala@intel.com>2018-03-21 13:12:28 +0200
commite04539b90485aa6580f689f152bddec2b27a4d61 (patch)
treeaf0bcdf238afbdda40f3ca382b09886ebe2f6b0c /scripts
parent5febee209a63ce9eac19ce294c870ddcf9a59d2e (diff)
run-tests.sh: allow relative IGT_TEST_ROOT and IGT_CONFIG_PATH
When piglit runs it chdir() to its own directory, so passing a relative path doesn't work. E.g.: Fatal Error: IGT directory does not exist. Missing: build/tests Make sure path is absolute throughout the script. Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/run-tests.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh
index 1c3f2805..230250dd 100755
--- a/scripts/run-tests.sh
+++ b/scripts/run-tests.sh
@@ -24,8 +24,8 @@
ROOT="`dirname $0`"
ROOT="`readlink -f $ROOT/..`"
-IGT_TEST_ROOT="${IGT_TEST_ROOT:-$ROOT/tests}"
-IGT_CONFIG_PATH="${IGT_CONFIG_PATH:-$HOME/.igtrc}"
+IGT_TEST_ROOT="`readlink -f ${IGT_TEST_ROOT:-$ROOT/tests}`"
+IGT_CONFIG_PATH="`readlink -f ${IGT_CONFIG_PATH:-$HOME/.igtrc}`"
RESULTS="$ROOT/results"
PIGLIT=`which piglit 2> /dev/null`