Browse Source

Display command output

pull/132/head
Oliverpool 9 years ago
parent
commit
320e94cfd8
  1. 28
      test/test_compilation/test_compilation.py

28
test/test_compilation/test_compilation.py

@ -96,10 +96,24 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest):
if steps:
command.extend(['--steps', steps])
return subprocess.check_call(
command,
stdin=subprocess.DEVNULL,
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
cwd=os.path.dirname(songbook),
)
return subprocess.check_call(
command,
stdin=subprocess.DEVNULL,
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
cwd=os.path.dirname(songbook),
)
#temp fix for travis tests
try:
val = subprocess.check_output(
command,
stderr=subprocess.STDOUT,
universal_newlines=True,
cwd=os.path.dirname(songbook),
)
print("###ok")
print(val)
print("ok###")
except subprocess.CalledProcessError as e:
print(e.output)
return 1
Loading…
Cancel
Save