Skip to content

Commit

Permalink
Fix test_silent_failure on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsmith committed Nov 15, 2023
1 parent 2f872c5 commit cc61f48
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -714,9 +714,10 @@ def test_missing_both(self):
# Test a buildPython which returns success without doing anything (#5631).
def test_silent_failure(self):
run = self.RunGradle("base", "BuildPython/silent_failure", succeed=False)
self.assertInStderr(
f"{join('python', 'env', 'debug', '[Ll]ib')} does not exist",
run, re=True)
lib_path = "python/env/debug/lib"
if os.name == "nt":
lib_path = lib_path.replace("/", "\\").replace("lib", "Lib")
self.assertInStderr(f"{lib_path} does not exist", run)

def test_variant(self):
run = self.RunGradle("base", "BuildPython/variant", variants=["red-debug"],
Expand Down

0 comments on commit cc61f48

Please sign in to comment.