Skip to content

Commit

Permalink
fix #14725
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Apr 17, 2024
1 parent fbd6bed commit a4e820b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/extractTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ def main(options):
nameBase = os.path.basename(target)
if "." in variant:
nameBase += variant.split(".")[-1]
isNetdiff = False
for a in appOptions:
if "netdiff.py" in a:
isNetdiff = True
exclude = []
# gather copy_test_path exclusions
for configFile in cfg:
Expand All @@ -247,7 +251,7 @@ def main(options):
for line in config:
entry = line.strip().split(':')
if entry and "copy_test_path" in entry[0] and entry[1] in potentials:
if "net" in app or not net or entry[1][-8:] != ".net.xml" or entry[1] == net:
if "net" in app or isNetdiff or not net or entry[1][-8:] != ".net.xml" or entry[1] == net:
toCopy = potentials[entry[1]][0]
if os.path.isdir(toCopy):
# copy from least specific to most specific
Expand Down

0 comments on commit a4e820b

Please sign in to comment.