diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2018-03-14 17:59:08 -0700 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2018-03-21 13:12:28 +0200 |
commit | e04539b90485aa6580f689f152bddec2b27a4d61 (patch) | |
tree | af0bcdf238afbdda40f3ca382b09886ebe2f6b0c /scripts | |
parent | 5febee209a63ce9eac19ce294c870ddcf9a59d2e (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-x | scripts/run-tests.sh | 4 |
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` |