From adeec452bada4352bf826b5936fa3894a45cb3c9 Mon Sep 17 00:00:00 2001 From: Geoff Brown Date: Wed, 21 Jun 2017 13:59:28 -0600 Subject: [PATCH] Bug 1371833 - In 'mach test-info', use posix paths for queries; r=jmaher --- testing/mach_commands.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testing/mach_commands.py b/testing/mach_commands.py index d1cda69d6eab..01c4c7298b37 100644 --- a/testing/mach_commands.py +++ b/testing/mach_commands.py @@ -1003,6 +1003,7 @@ class TestInfoCommand(MachCommandBase): # This function attempts to find appropriate names for different # queries based on the specified test name. + import posixpath import re # full_test_name is full path to file in hg (or git) @@ -1023,6 +1024,7 @@ class TestInfoCommand(MachCommandBase): for line in out: print(line) if self.full_test_name: + self.full_test_name.replace(os.sep, posixpath.sep) print("Found %s in source control." % self.full_test_name) else: print("Unable to validate test name '%s'!" % self.test_name)