nixpkgs/pkgs/by-name/gi/github-runner/patches/test-getsrcpath.patch
2024-11-23 17:14:34 +01:00

15 lines
525 B
Diff

--- a/src/Test/L0/TestUtil.cs
+++ b/src/Test/L0/TestUtil.cs
@@ -27,11 +27,8 @@
public static string GetSrcPath()
{
- string L0dir = Path.GetDirectoryName(GetTestFilePath());
- string testDir = Path.GetDirectoryName(L0dir);
- string srcDir = Path.GetDirectoryName(testDir);
+ string srcDir = "../../../../..";
ArgUtil.Directory(srcDir, nameof(srcDir));
- Assert.Equal(Src, Path.GetFileName(srcDir));
return srcDir;
}