From 35e113a3656d5dbe09a25e6bcbf29191aeec3848 Mon Sep 17 00:00:00 2001
From: Simon McVittie <smcv@collabora.com>
Date: Mon, 7 Sep 2020 20:49:03 +0100
Subject: [PATCH] tests/system-info: Match more distinctive strings

If we happen to have our TMPDIR in a directory named
steam-runtime-tools, we don't want to replace that with my-runtime-tools.

Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 tests/system-info.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/system-info.c b/tests/system-info.c
index 99a56453e..00e3a901f 100644
--- a/tests/system-info.c
+++ b/tests/system-info.c
@@ -1107,15 +1107,15 @@ runtime_unexpected_location (Fixture *f,
   /* Move the steam-runtime to another location called "my-runtime" and
    * adjust all the environment variables accordingly. */
   ld_path = g_strdup (g_environ_getenv (fake_home->env, "LD_LIBRARY_PATH"));
-  parts = g_strsplit (ld_path, "steam-runtime", -1);
+  parts = g_strsplit (ld_path, "/ubuntu12_32/steam-runtime/", -1);
   g_free (ld_path);
-  ld_path = g_strjoinv ("my-runtime", parts);
+  ld_path = g_strjoinv ("/ubuntu12_32/my-runtime/", parts);
   g_strfreev (parts);
 
   env_path = g_strdup (g_environ_getenv (fake_home->env, "PATH"));
-  parts = g_strsplit (env_path, "steam-runtime", -1);
+  parts = g_strsplit (env_path, "/ubuntu12_32/steam-runtime/", -1);
   g_free (env_path);
-  env_path = g_strjoinv ("my-runtime", parts);
+  env_path = g_strjoinv ("/ubuntu12_32/my-runtime/", parts);
 
   g_rename (fake_home->runtime, my_runtime);
   g_remove (dot_steam_root);
-- 
GitLab