Whitespace

This commit is contained in:
Garret Rieger 2018-02-08 11:31:27 -08:00 committed by Behdad Esfahbod
parent f9420d9eff
commit 29d915284e
1 changed files with 8 additions and 8 deletions

View File

@ -47,13 +47,13 @@ def run_test(test):
if return_code: if return_code:
return fail_test(test, cli_args, "%s returned %d" % (' '.join(cli_args), return_code)) return fail_test(test, cli_args, "%s returned %d" % (' '.join(cli_args), return_code))
expected_ttx, return_code = run_ttx(os.path.join(test_suite.get_output_directory(), expected_ttx, return_code = run_ttx(os.path.join(test_suite.get_output_directory(),
test.get_font_name())) test.get_font_name()))
if return_code: if return_code:
return fail_test(test, cli_args, "ttx (expected) returned %d" % (return_code)) return fail_test(test, cli_args, "ttx (expected) returned %d" % (return_code))
actual_ttx, return_code = run_ttx(out_file) actual_ttx, return_code = run_ttx(out_file)
if return_code: if return_code:
return fail_test(test, cli_args, "ttx (actual) returned %d" % (return_code)) return fail_test(test, cli_args, "ttx (actual) returned %d" % (return_code))
if not actual_ttx == expected_ttx: if not actual_ttx == expected_ttx:
@ -62,10 +62,10 @@ def run_test(test):
return 0 return 0
def run_ttx(file): def run_ttx(file):
cli_args = ["ttx", cli_args = ["ttx",
"-o-", "-o-",
file] file]
return cmd(cli_args) return cmd(cli_args)
args = sys.argv[1:] args = sys.argv[1:]