Fix stderr printing.
authorJarkko Pöyry <jpoyry@google.com>
Tue, 19 May 2015 18:12:01 +0000 (11:12 -0700)
committerJarkko Pöyry <jpoyry@google.com>
Tue, 19 May 2015 18:13:15 +0000 (11:13 -0700)
Change-Id: Ibaa5976d469ed610ad795ec5cffee83a15707c00

android/scripts/common.py

index 241cecf..ec9afb9 100644 (file)
@@ -121,7 +121,7 @@ def execArgsInDirectory (args, cwd, linePrefix=""):
 
        process = subprocess.Popen(args, cwd=cwd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
        stdoutJob = threading.Thread(target=readApplyPrefixAndPrint, args=(process.stdout, linePrefix, sys.stdout))
-       stderrJob = threading.Thread(target=readApplyPrefixAndPrint, args=(process.stdout, linePrefix, sys.stderr))
+       stderrJob = threading.Thread(target=readApplyPrefixAndPrint, args=(process.stderr, linePrefix, sys.stderr))
        stdoutJob.start()
        stderrJob.start()
        retcode = process.wait()