This is a better fix for the problem fixed in r334972.
Also remove the rm'ing of the symlink destination that was there to
clean up the bots -- it's over a year later, bots should be happy now.
Differential D64301
Use `ln -n` to prevent forming a symlink cycle, instead of rm'ing the source thakis on Jul 7 2019, 4:01 PM. Authored by
Details This is a better fix for the problem fixed in r334972. Also remove the rm'ing of the symlink destination that was there to
Diff Detail
Event TimelineComment Actions lgtm I think @zturner wanted to teach lit to completely remove the Output/ directory for every test so we don't have to deal with stale files from previous tests hanging around. I remember objecting that we can't do that on startup since it's slow and not parallelized. However, I think we could probably add it as an early step to TestRunner.executeShTest so we don't have to add these extra 'rm' commands anymore. Comment Actions Just a reminder, the DeleteFile API, and thus rm on Windows are async. There's no guarantee the files were deleted once rm completes. See this. Occasionally, the tests are failing locally on my PC because of that (maybe 1 out of 50 times). This comment was removed by aganea. Comment Actions ln -n is not a standard option that is portably supported. I'll be restoring the use of rm (with -f instead of -rf) and the associated comment for removing %t.fake. Comment Actions ln -n means something different on AIX: https://www.ibm.com/support/knowledgecenter/en/ssw_aix_72/l_commands/ln.html |