HomePhabricator

[bugfix] Fix subprocess results in Python 3

Description

[bugfix] Fix subprocess results in Python 3

  • returncode for a killed process is 1; add it to auto-run exit_codes
  • don't raise TimeoutError with Python 2
  • replace timeout_handler with p.kill
  • kill process in Python 3 after TimeoutExpired and read stdout_data, stderr_data and returncode in Python 3
  • reorder imports
  • enable lonelypages script tests

Bug: T95385
Change-Id: I840d0bac0a161c9cfa1678e90752078d22147c22

Details

Provenance
XqtAuthored on Apr 10 2020, 2:20 PM
Parents
rPWBCcce189b1fe65: Revert "Revert "Disable imageharvest tests" and enable tests"
Branches
Unknown
Tags
Unknown
ChangeId
I840d0bac0a161c9cfa1678e90752078d22147c22