diff options
| author | Michael Halstead <mhalstead@linuxfoundation.org> | 2018-11-08 12:58:39 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-14 11:14:39 +0000 |
| commit | aba0686c72ebf15ef0f08b7b33844a03891df9fa (patch) | |
| tree | 32d1004c3ef0171de8d884fe1260914edc32f529 /scripts/runqemu | |
| parent | e69ac0cab6828041e76504205bddb5014e20eaff (diff) | |
| download | poky-aba0686c72ebf15ef0f08b7b33844a03891df9fa.tar.gz | |
scripts/runqemu: Replace subprocess.run() for compatibilty
subprocess.run() was introduced in Python 3.5. We currently support down to
Python 3.4 so I've replaced it with subprocess.check_call() which is available
in that version.
(From OE-Core rev: 3a09cee5994ce65079dab1042e47e5eed4540bb9)
Signed-off-by: Michael Halstead <mhalstead@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu')
| -rwxr-xr-x | scripts/runqemu | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index 0c61253d6a..c79be9a846 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
| @@ -1321,7 +1321,7 @@ def main(): | |||
| 1321 | logger.info("SIGTERM received") | 1321 | logger.info("SIGTERM received") |
| 1322 | os.kill(config.qemupid, signal.SIGTERM) | 1322 | os.kill(config.qemupid, signal.SIGTERM) |
| 1323 | config.cleanup() | 1323 | config.cleanup() |
| 1324 | subprocess.run(["tput", "smam"]) | 1324 | subprocess.check_call(["tput", "smam"]) |
| 1325 | signal.signal(signal.SIGTERM, sigterm_handler) | 1325 | signal.signal(signal.SIGTERM, sigterm_handler) |
| 1326 | 1326 | ||
| 1327 | config.check_args() | 1327 | config.check_args() |
| @@ -1343,7 +1343,7 @@ def main(): | |||
| 1343 | return 1 | 1343 | return 1 |
| 1344 | finally: | 1344 | finally: |
| 1345 | config.cleanup() | 1345 | config.cleanup() |
| 1346 | subprocess.run(["tput", "smam"]) | 1346 | subprocess.check_call(["tput", "smam"]) |
| 1347 | 1347 | ||
| 1348 | if __name__ == "__main__": | 1348 | if __name__ == "__main__": |
| 1349 | sys.exit(main()) | 1349 | sys.exit(main()) |
