Skip to content

Commit

Permalink
scripts/test.py: fixed naming of -f value to be 'fitz'.
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-smith-artifex-com committed May 22, 2024
1 parent df1c280 commit 838d8f1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def main(argv):
build_type = None
build_mupdf = True
gdb = False
test_pymupdf = True
test_fitz = True
implementations = None
test_names = list()
venv = 2
Expand All @@ -157,7 +157,7 @@ def main(argv):
elif arg == '-d':
build_type = 'debug'
elif arg == '-f':
test_pymupdf = int(next(args))
test_fitz = int(next(args))
elif arg in ('-h', '--help'):
show_help()
return
Expand Down Expand Up @@ -226,7 +226,7 @@ def do_test():
pytest_options=pytest_options,
timeout=timeout,
gdb=gdb,
test_pymupdf=test_pymupdf,
test_fitz=test_fitz,
)

for command in commands:
Expand Down Expand Up @@ -359,7 +359,7 @@ def test(
pytest_options=None,
timeout=None,
gdb=False,
test_pymupdf=True,
test_fitz=True,
):
'''
Args:
Expand All @@ -375,7 +375,7 @@ def test(
See top-level option `-p`.
gdb:
See top-level option `--gdb`.
test_pymupdf:
test_fitz:
See top-level option `-f`.
'''
pymupdf_dir_rel = gh_release.relpath(pymupdf_dir)
Expand Down Expand Up @@ -433,7 +433,7 @@ def test(
for p in glob.glob(f'{pymupdf_dir_rel}/tests/test_*_fitz.py'):
print(f'Removing {p=}')
os.remove(p)
if test_pymupdf:
if test_fitz:
# Create copies of each test file, modified to use `pymupdf`
# instead of `fitz`.
for p in glob.glob(f'{pymupdf_dir_rel}/tests/test_*.py'):
Expand Down

0 comments on commit 838d8f1

Please sign in to comment.