From 20a541a2f2820b87bd1bbb8fdd9fe547e2cf2802 Mon Sep 17 00:00:00 2001 From: Colin Davidson Date: Wed, 12 Feb 2025 15:21:38 +0000 Subject: [PATCH] change city runner default to cd into directory of test. A recent change to an OpenCL CTS test showed that their usage of the csv file changes to the directory of the test before running it. This is required in order to use their csv files. This changes city runner to follow the same method by default. --- scripts/testing/city_runner/profiles/default.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/testing/city_runner/profiles/default.py b/scripts/testing/city_runner/profiles/default.py index a214a8d68..8e2a3eac5 100644 --- a/scripts/testing/city_runner/profiles/default.py +++ b/scripts/testing/city_runner/profiles/default.py @@ -99,6 +99,9 @@ def execute(self): if lib_dirs: env[env_var_name] = env_var_separator.join(lib_dirs) + if os.path.exists(exe_path): + working_dir = os.path.dirname(exe_path) + # Support ` ` invocations by splitting the # value of the --prepend_args option, the first item being the path to # `` binary and subsequent items optional arguments.