Skip to content

Commit

Permalink
Adjust test.py for argparse
Browse files Browse the repository at this point in the history
  • Loading branch information
tgingold-cern committed Nov 27, 2023
1 parent 048d39c commit 110e308
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proto/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@ def test_edge3():
global nbr_tests
# don't test 'issue84/sps200CavityControl', too incompatible to rework
for f in ['issue124/project', 'issue129/acdipole_ip', 'issue128/acdipole_ip']:
if verbose:
if args.verbose:
print('test edge3: {}'.format(f))
chebfile = srcdir + f + '.cheby'
edgefile = srcdir + f + '.csv'
Expand All @@ -965,7 +965,7 @@ def test_edge3():
gen_edge3.generate_edge3(buf, t)
print(edgefile)
if os.path.exists(edgefile):
if verbose:
if args.verbose:
print('testing with edge3 file: {}'.format(edgefile))
if not compare_buffer_and_file(buf, edgefile):
error('edge3 generation error for {}'.format(f))
Expand Down

0 comments on commit 110e308

Please sign in to comment.