Skip to content
Snippets Groups Projects
Commit cc447c3f authored by Simon McVittie's avatar Simon McVittie
Browse files

test-ui: Respect PRESSURE_VESSEL_VARIABLE_DIR


Making this configurable as an environment variable will help us to
move the logic for unpacking and GC'ing runtimes from SteamLinuxRuntime
shell scripts into pressure-vessel C code.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent f2ee439d
No related branches found
No related tags found
1 merge request!216Look for runtimes in PRESSURE_VESSEL_VARIABLE_DIR
Pipeline #7389 passed
......@@ -172,13 +172,16 @@ class Gui:
if var_path is None:
value = False
var_path = os.getenv('PRESSURE_VESSEL_VARIABLE_DIR', None)
else:
value = True
if var_path is None:
var_path = os.getenv(
'PRESSURE_VESSEL_RUNTIME_BASE',
os.path.dirname(__file__) + '/../..',
) + '/var'
assert var_path is not None
else:
value = True
self.var_path = os.path.realpath(var_path)
self.copy_runtime_into_check = Gtk.CheckButton.new_with_label(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment