|
|
@ -38,6 +38,7 @@ import collections |
|
|
|
import glob |
|
|
|
import glob |
|
|
|
import itertools |
|
|
|
import itertools |
|
|
|
import json |
|
|
|
import json |
|
|
|
|
|
|
|
import logging |
|
|
|
import multiprocessing |
|
|
|
import multiprocessing |
|
|
|
import os |
|
|
|
import os |
|
|
|
import os.path |
|
|
|
import os.path |
|
|
@ -84,7 +85,7 @@ def run_shell_command(cmd, env=None, cwd=None): |
|
|
|
try: |
|
|
|
try: |
|
|
|
subprocess.check_output(cmd, shell=True, env=env, cwd=cwd) |
|
|
|
subprocess.check_output(cmd, shell=True, env=env, cwd=cwd) |
|
|
|
except subprocess.CalledProcessError as e: |
|
|
|
except subprocess.CalledProcessError as e: |
|
|
|
print("Error while running command '%s'. Exit status %d. Output:\n%s", |
|
|
|
logging.exception("Error while running command '%s'. Exit status %d. Output:\n%s", |
|
|
|
e.cmd, e.returncode, e.output) |
|
|
|
e.cmd, e.returncode, e.output) |
|
|
|
raise |
|
|
|
raise |
|
|
|
|
|
|
|
|
|
|
|