Skip to content

Commit

Permalink
Misc improvements to tests/syntax.py
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-gp committed Jul 9, 2022
1 parent 7186976 commit 363d6cf
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/syntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,15 @@

man_syntax_path = Path('../syntaxes/Manpage.sublime-syntax')
if not man_syntax_path.is_file():
print("\033[34m" + "Manpage syntax is missing, downloading it..." + "\033[00m")
man_syntax = urllib.request.urlretrieve(
'https://raw.github.com/sharkdp/bat/master/assets/syntaxes/02_Extra/Manpage.sublime-syntax',
'../syntaxes/Manpage.sublime-syntax'
)

### arrange arguments

args = ""
if script_args.test_path:
args = f"{script_args.test_path} {syntaxes_path}"
else:
args = f"{tests_path} {syntaxes_path}"

args = f"{script_args.test_path or tests_path} {syntaxes_path}"
if script_args.debug:
args += " --debug"
if script_args.summary:
Expand Down

0 comments on commit 363d6cf

Please sign in to comment.