llvm-project/llvm/utils
Pete Steinfeld 72416b136e Fixed a problem removing temp files
Summary:
Before making this change, whenever I ran "check-flang", I'd get an
error message like:

llvm-lit: /mnt/c/GitHub/f18/c751/flang/build/bin/../../../llvm/utils/lit/lit/main.py:252: warning: Failed to delete temp directory '/tmp/lit_tmp_gOKUIh'

With this change, there's no such message in the output, and the temp
directory is successfully removed.

Note that my working environment is on Windows 10 running Windows
Subsystem for Linux using the Ubuntu app.  I'm running Python version
2.7.1.

Earlier versions of Python do not contain `shutil`.  It may be that this
module was available on Windows systems later than other platforms.
Upgrading my version of Python made the problem go away

I don't believe that timing was a problem since inserting a long delay
didn't fix things.

So I added some text to the error message recommending that the user
upgrade their version of Python if they run into this problem.

Reviewers: yln, DavidTruby

Subscribers: delcypher, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D79861
2020-05-13 11:40:19 -07:00
..
FileCheck [FileCheck] Support comment directives 2020-05-13 11:29:48 -04:00
KillTheDoctor Revert "Use InitLLVM to setup a pretty stack printer" 2019-11-25 21:06:56 -05:00
LLVMVisualizers
Misc
PerfectShuffle revert parts of d7888149aa that several bots do not like 2020-03-25 14:05:07 -04:00
Reviewing [find_interesting_reviews.py] Add git blame output cache 2019-12-23 12:08:16 +00:00
TableGen [TableGen] Fix register class handling in TableGen's DAG ISel Matcher Generator 2020-05-13 10:17:03 +01:00
Target/ARM
UpdateTestChecks [UpdateTestChecks] Make generation of UTC_ARGS: comment more robust 2020-04-23 13:12:27 +01:00
benchmark [RISCV][PowerPC] Fix google/benchmark benchmark::cycleclock::Now 2020-04-18 09:32:19 +01:00
bugpoint [NFC] Fix trivial typos in comments 2020-01-06 10:50:26 +00:00
count
crosstool
docker Continue removing llgo. 2020-02-10 10:33:58 -08:00
emacs [TableGen] Update editor modes for new keywords. 2020-01-14 13:39:00 +00:00
fpcmp
gdb-scripts Change to individual pretty printer classes, remove generic `make_printer`. 2020-03-11 15:04:03 +01:00
gn [NativeSession] Implement NativeSession::findSymbolByAddress. 2020-05-13 09:39:25 -07:00
jedit
kate [TableGen] Update editor modes for new keywords. 2020-01-14 13:39:00 +00:00
lint
lit Fixed a problem removing temp files 2020-05-13 11:40:19 -07:00
llvm-build
llvm-lit llvm-lit.in: Use a raw string for LLVM_SOURCE_DIR 2020-05-11 19:05:53 -04:00
llvm-locstats [llvm-dwarfdump][Stats] Clean up 2020-05-04 09:35:40 +02:00
not
release Use maximum compression when packaging release tarballs. 2020-04-15 20:30:26 +02:00
sanitizers
testgen
textmate
unittest Use std::foo_t rather than std::foo in LLVM. 2020-02-11 15:12:51 -08:00
valgrind
vim [lit] Add builtin support for flaky tests in lit 2020-03-18 18:04:01 -04:00
vscode [lit] Add builtin support for flaky tests in lit 2020-03-18 18:04:01 -04:00
yaml-bench
DSAclean.py
DSAextract.py [Utils] Make some scripts directly executable 2020-02-28 13:39:54 +00:00
GenLibDeps.pl
GetSourceVersion
LLVMBuild.txt
UpdateCMakeLists.pl
abtest.py
add_argument_names.py
bisect [utils] Fix incompatibility of bisect[-skip-count] with Python 3 2019-10-04 16:44:18 +00:00
bisect-skip-count [utils] Fix incompatibility of bisect[-skip-count] with Python 3 2019-10-04 16:44:18 +00:00
bugpoint_gisel_reducer.py
check-each-file
chunk-print-before-all.py [Tools] Fixed bug with llvm/utils/chunk-print-before-all.py script. 2020-04-09 22:24:55 +00:00
clang-parse-diagnostics-file utils: Tweak clang-parse-diagnostics-file for modules includes 2020-04-02 14:16:26 -07:00
codegen-diff
collect_and_build_with_pgo.py
countloc.sh
create_ladder_graph.py [Utils] Make some scripts directly executable 2020-02-28 13:39:54 +00:00
demangle_tree.py
extract_symbols.py [AIX] Make sure we use export lists for plugins 2020-05-08 14:00:25 -04:00
extract_vplan.py
findmisopt
findoptdiff
findsym.pl
getsrcs.sh
indirect_calls.py
lldbDataFormatters.py Fix a null dereference in the LLDB data formatters. 2020-02-25 16:43:55 -08:00
llvm-compilers-check
llvm-gisel-cov.py [NFC] Fix minor python issues. 2020-02-28 14:17:43 -08:00
llvm-native-gxx
llvm.grm
llvmdo
llvmgrep
prepare-code-coverage-artifact.py
schedcover.py [Utils] Make some scripts directly executable 2020-02-28 13:39:54 +00:00
shuffle_fuzz.py
shuffle_select_fuzz_tester.py [Utils] Make some scripts directly executable 2020-02-28 13:39:54 +00:00
sort_includes.py
unicode-case-fold.py
update_analyze_test_checks.py [UpdateTestChecks] Use common ir function name matcher and extend to accept periods in names (PR37586) 2020-03-24 10:59:30 +00:00
update_cc_test_checks.py Fix line endings produced by update_cc_test_checks.py 2020-02-14 15:17:27 +00:00
update_llc_test_checks.py [Utils][x86] add an option to reduce scrubbing of shuffles with memops 2020-02-20 09:33:05 -05:00
update_mca_test_checks.py [UpdateTestChecks] Change shebang from python to python3 2019-12-03 13:50:07 -08:00
update_mir_test_checks.py [UpdateTestChecks] Change shebang from python to python3 2019-12-03 13:50:07 -08:00
update_test_checks.py [UpdateTestChecks] Use common ir function name matcher and extend to accept periods in names (PR37586) 2020-03-24 10:59:30 +00:00
wciia.py