From 2a226b64c71f5a793e3f51107b6e548889df11ad Mon Sep 17 00:00:00 2001 From: Lucien Zimmermann Date: Sat, 23 Nov 2024 14:51:06 +0100 Subject: [PATCH] github-runner: fix test execution on build --- .../gi/github-runner/patches/test-getsrcpath.patch | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/gi/github-runner/patches/test-getsrcpath.patch b/pkgs/by-name/gi/github-runner/patches/test-getsrcpath.patch index c4c571cc78e2..c169f0af3913 100644 --- a/pkgs/by-name/gi/github-runner/patches/test-getsrcpath.patch +++ b/pkgs/by-name/gi/github-runner/patches/test-getsrcpath.patch @@ -1,11 +1,14 @@ --- a/src/Test/L0/TestUtil.cs +++ b/src/Test/L0/TestUtil.cs -@@ -29,7 +29,7 @@ +@@ -27,11 +27,8 @@ + + public static string GetSrcPath() { - string L0dir = Path.GetDirectoryName(GetTestFilePath()); - string testDir = Path.GetDirectoryName(L0dir); +- string L0dir = Path.GetDirectoryName(GetTestFilePath()); +- string testDir = Path.GetDirectoryName(L0dir); - string srcDir = Path.GetDirectoryName(testDir); -+ string srcDir = "/build/src" + Path.GetDirectoryName(testDir).Substring(2); ++ string srcDir = "../../../../.."; ArgUtil.Directory(srcDir, nameof(srcDir)); - Assert.Equal(Src, Path.GetFileName(srcDir)); +- Assert.Equal(Src, Path.GetFileName(srcDir)); return srcDir; + }