|
|
@ -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 |