<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div>  If these are temporary work files could you not have them end with .c etc maybe have an extra .tmp at the end or something so they don't mess with everything if they are lying around? It is annoying to have to keep deleting them all.<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Dec 13, 2021, at 9:32 PM, Barry Smith <<a href="mailto:bsmith@petsc.dev" class="">bsmith@petsc.dev</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div>  Scott,<div class=""><br class=""></div><div class="">    There is a problem. Somehow you are generating a ton of new_ex*.c files and then testparse.py is crapping out on them? </div><div class="">  </div><div class="">    I see some weird stuff with these files but cannot tell when they are made and why they exist. </div><div class=""><br class=""></div><div class=""><br class=""><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">config/gmakegentest.py</span><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb" class="">:</span><span style="font-variant-ligatures: no-common-ligatures" class="">      #if not exfile.startswith("</span><span style="font-variant-ligatures: no-common-ligatures; color: #b42419" class=""><b class="">new_</b></span><span style="font-variant-ligatures: no-common-ligatures" class="">"+"ex"): continue</span></div><div style="margin: 0px; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">config/testparse.py</span><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb" class="">:</span><span style="font-variant-ligatures: no-common-ligatures" class="">    </span><span style="font-variant-ligatures: no-common-ligatures; color: #b42419" class=""><b class="">new_</b></span><span style="font-variant-ligatures: no-common-ligatures" class="">pos = sl.instream.tell()</span></div><div style="margin: 0px; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">config/testparse.py</span><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb" class="">:</span><span style="font-variant-ligatures: no-common-ligatures" class="">    block = striptest[last_pos:</span><span style="font-variant-ligatures: no-common-ligatures; color: #b42419" class=""><b class="">new_</b></span><span style="font-variant-ligatures: no-common-ligatures" class="">pos]</span></div><div style="margin: 0px; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">config/testparse.py</span><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb" class="">:</span><span style="font-variant-ligatures: no-common-ligatures" class="">    last_pos = </span><span style="font-variant-ligatures: no-common-ligatures; color: #b42419" class=""><b class="">new_</b></span><span style="font-variant-ligatures: no-common-ligatures" class="">pos</span></div><div style="margin: 0px; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">config/testparse.py</span><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb" class="">:</span><span style="font-variant-ligatures: no-common-ligatures" class="">  bn=re.sub("</span><span style="font-variant-ligatures: no-common-ligatures; color: #b42419" class=""><b class="">new_</b></span><span style="font-variant-ligatures: no-common-ligatures" class="">","",basename)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">config/testparse.py</span><span style="font-variant-ligatures: no-common-ligatures; color: #2eaebb" class="">:</span><span style="font-variant-ligatures: no-common-ligatures" class="">  for test_file in sorted(glob.glob("</span><span style="font-variant-ligatures: no-common-ligatures; color: #b42419" class=""><b class="">new_</b></span><span style="font-variant-ligatures: no-common-ligatures" class="">ex*.*")):</span></div><div style="margin: 0px; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><blockquote type="cite" class=""><div class="">On Dec 12, 2021, at 10:32 PM, Barry Smith <<a href="mailto:bsmith@petsc.dev" class="">bsmith@petsc.dev</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><br class="">  Looks like it is coming from some old .c files that I had lying around that are not in the repository.<br class=""><br class="">  I will push a commit that prints the offending file name to make the cause easier to track down in the future<br class=""><br class="">  Barry<br class=""><br class=""><br class=""><blockquote type="cite" class="">On Dec 12, 2021, at 6:09 PM, kruger Scott <<a href="mailto:kruger@txcorp.com" class="">kruger@txcorp.com</a>> wrote:<br class=""><br class=""><br class="">I'm baffled and unable to reproduce.  Can you give me your configure.log<br class="">to help reproduce?  <br class=""><br class="">Scott<br class=""><br class=""><br class="">On 2021-12-12 17:40, Barry Smith did write:<br class=""><blockquote type="cite" class=""><br class=""> Scott,<br class=""><br class="">   In the branch barry/2021-11-04/add-dmplex-vecghost  which was just rebased on main I get <br class=""><br class="">/usr/local/opt/python@3.9/bin/python3.9 ./config/gmakegen.py --petsc-arch=arch-add-dmplex-vecghost                                          <br class="">/usr/local/opt/python@3.9/bin/python3.9 /Users/barrysmith/Src/petsc/config/gmakegentest.py --petsc-dir=/Users/barrysmith/Src/petsc --petsc-arch=arch-add-dmplex-vecghost --testdir=./arch-add-dmplex-vecghost/tests<br class="">Traceback (most recent call last):<br class=""> File "/Users/barrysmith/Src/petsc/config/gmakegentest.py", line 1089, in <module><br class="">   main(petsc_dir=opts.petsc_dir, petsc_arch=opts.petsc_arch,<br class=""> File "/Users/barrysmith/Src/petsc/config/gmakegentest.py", line 1060, in main<br class="">   dataDict=pEx.walktree(os.path.join(pEx.srcdir))<br class=""> File "/Users/barrysmith/Src/petsc/config/gmakegentest.py", line 924, in walktree<br class="">   self.genPetscTests(root,dirs,files,dataDict)<br class=""> File "/Users/barrysmith/Src/petsc/config/gmakegentest.py", line 897, in genPetscTests<br class="">   dataDict[root].update(testparse.parseTestFile(fullex,0))<br class=""> File "/Users/barrysmith/Src/petsc/config/testparse.py", line 542, in parseTestFile<br class="">   testDict[basename]=parseTests(testString,srcfile,fileNums,verbosity)<br class=""> File "/Users/barrysmith/Src/petsc/config/testparse.py", line 498, in parseTests<br class="">   testnames,subdicts=parseTest(test,srcfile,verbosity)<br class=""> File "/Users/barrysmith/Src/petsc/config/testparse.py", line 426, in parseTest<br class="">   if not var in acceptedkeys: raise Exception("Keyword: "+var+" from: "+line+" is not valid")<br class="">Exception: Keyword: redirect_file from: redirect_file: ex1_1.tmp is not valid<br class="">make: *** [gmakefile.test:97: arch-add-dmplex-vecghost/tests/testfiles] Error 1<br class=""><br class="">How to track down the problem? Is it due to a bad rule from some file (which file, could that be printed?)<br class=""></blockquote><br class="">-- <br class="">Scott Kruger<br class="">Tech-X Corporation               <a href="mailto:kruger@txcorp.com" class="">kruger@txcorp.com</a><br class="">5621 Arapahoe Ave, Suite A       Phone: (720) 466-3196<br class="">Boulder, CO 80303                Fax:   (303) 448-7756<br class=""></blockquote><br class=""></div></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></body></html>