Index: chrome/test/mini_installer/test_installer.py |
diff --git a/chrome/test/mini_installer/test_installer.py b/chrome/test/mini_installer/test_installer.py |
index ea0aeb69c0ad052fb4c3d1d59e80b3d197749b15..adb42145db4cbce10d000210e5e3a018890c5264 100644 |
--- a/chrome/test/mini_installer/test_installer.py |
+++ b/chrome/test/mini_installer/test_installer.py |
@@ -106,11 +106,12 @@ class InstallerTest(unittest.TestCase): |
raise AssertionError("In state '%s', %s" % (state, e)) |
def _RunCommand(self, command): |
robertshield
2013/09/04 22:16:29
please add a brief method comment that mentions th
sukolsak
2013/09/04 22:53:49
Done.
|
- exit_status = subprocess.call(self._path_resolver.ResolvePath(command), |
- shell=True) |
+ resolved_command = self._path_resolver.ResolvePath(command) |
+ script_dir = os.path.dirname(__file__) |
+ exit_status = subprocess.call(resolved_command, shell=True, cwd=script_dir) |
if exit_status != 0: |
- self.fail('Command %s returned non-zero exit status %s' % (command, |
- exit_status)) |
+ self.fail('Command %s returned non-zero exit status %s' % ( |
+ resolved_command, exit_status)) |
def MergePropertyDictionaries(current_property, new_property): |