googlecodelabs / android-perf-testing

Automated Performance Testing on Android
https://codelabs.developers.google.com/codelabs/android-perf-testing/
Apache License 2.0
93 stars 39 forks source link

ValueError: close_fds is not supported on Windows platforms if you redirect stdin/stdout/stderr #35

Open syedhaq opened 7 years ago

syedhaq commented 7 years ago

CRITICAL:root:(TimeoutThread-1-for-MainThread) Exception on _RunAdbCmd(<class 'devil.android.sdk.adb_wrapper.AdbWrapper'>, ['devices'], retries=2, timeout=30), attempt 1 of 3: ValueError('close_fds is not supported on Windows platforms if you redirect stdin/stdout/stderr',) CRITICAL:root:(TimeoutThread-2-for-MainThread) Exception on _RunAdbCmd(<class 'devil.android.sdk.adb_wrapper.AdbWrapper'>, ['devices'], retries=2, timeout=30), attempt 2 of 3: ValueError('close_fds is not supported on Windows platforms if you redirect stdin/stdout/stderr',) Traceback (most recent call last): File "C:\Users\shaq\AppData\Local\Android\android-sdk\platform-tools\systrace\systrace.py", line 49, in sys.exit(run_systrace.main()) File "C:\Users\shaq\AppData\Local\Android\android-sdk\platform-tools\systrace\catapult\systrace\systrace\run_systrace.py", line 194, in main main_impl(sys.argv) File "C:\Users\shaq\AppData\Local\Android\android-sdk\platform-tools\systrace\catapult\systrace\systrace\run_systrace.py", line 155, in main_impl devices = [a.GetDeviceSerial() for a in adb_wrapper.AdbWrapper.Devices()] File "C:\Users\shaq\AppData\Local\Android\android-sdk\platform-tools\systrace\catapult\systrace\systrace....\devil\devil\android\sdk\adb_wrapper.py", line 363, in Devices retries=retries) File "C:\Users\shaq\AppData\Local\Android\android-sdk\platform-tools\systrace\catapult\systrace\systrace....\devil\devil\android\sdk\adb_wrapper.py", line 383, in _RawDevices output = cls._RunAdbCmd(cmd, timeout=timeout, retries=retries) File "C:\Users\shaq\AppData\Local\Android\android-sdk\platform-tools\systrace\catapult\systrace\systrace....\devil\devil\android\decorators.py", line 57, in timeout_retry_wrapper retry_if_func=retry_if_func) File "C:\Users\shaq\AppData\Local\Android\android-sdk\platform-tools\systrace\catapult\systrace\systrace....\devil\devil\utils\timeout_retry.py", line 159, in Run error_log_func=error_log_func) File "C:\Users\shaq\AppData\Local\Android\android-sdk\platform-tools\systrace\catapult\systrace\systrace....\devil\devil\utils\reraiser_thread.py", line 186, in JoinAll self._JoinAll(watcher, timeout) File "C:\Users\shaq\AppData\Local\Android\android-sdk\platform-tools\systrace\catapult\systrace\systrace....\devil\devil\utils\reraiser_thread.py", line 158, in _JoinAll thread.ReraiseIfException() File "C:\Users\shaq\AppData\Local\Android\android-sdk\platform-tools\systrace\catapult\systrace\systrace....\devil\devil\utils\reraiser_thread.py", line 81, in run self._ret = self._func(*self._args, self._kwargs) File "C:\Users\shaq\AppData\Local\Android\android-sdk\platform-tools\systrace\catapult\systrace\systrace....\devil\devil\utils\timeout_retry.py", line 152, in child_thread = reraiser_thread.ReraiserThread(lambda: func(*args, *kwargs), File "C:\Users\shaq\AppData\Local\Android\android-sdk\platform-tools\systrace\catapult\systrace\systrace....\devil\devil\android\decorators.py", line 47, in impl return f(args, kwargs) File "C:\Users\shaq\AppData\Local\Android\android-sdk\platform-tools\systrace\catapult\systrace\systrace....\devil\devil\android\sdk\adb_wrapper.py", line 249, in _RunAdbCmd timeout_retry.CurrentTimeoutThreadGroup().GetRemainingTime()) File "C:\Users\shaq\AppData\Local\Android\android-sdk\platform-tools\systrace\catapult\systrace\systrace....\devil\devil\utils\cmd_helper.py", line 313, in GetCmdStatusAndOutputWithTimeout stderr=subprocess.STDOUT) File "C:\Users\shaq\AppData\Local\Android\android-sdk\platform-tools\systrace\catapult\systrace\systrace....\devil\devil\utils\cmd_helper.py", line 105, in Popen shell=shell, close_fds=True, env=env, preexec_fn=preexec_fn) File "C:\Python27\lib\subprocess.py", line 347, in init raise ValueError("close_fds is not supported on Windows " ValueError: close_fds is not supported on Windows platforms if you redirect stdin/stdout/stderr