[LNT] r303830 - tests/compile.py: Allow more archive formats
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Wed May 24 19:03:58 PDT 2017
Author: matze
Date: Wed May 24 21:03:57 2017
New Revision: 303830
URL: http://llvm.org/viewvc/llvm-project?rev=303830&view=rev
Log:
tests/compile.py: Allow more archive formats
Modified:
lnt/trunk/lnt/tests/compile.py
Modified: lnt/trunk/lnt/tests/compile.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/tests/compile.py?rev=303830&r1=303829&r2=303830&view=diff
==============================================================================
--- lnt/trunk/lnt/tests/compile.py (original)
+++ lnt/trunk/lnt/tests/compile.py Wed May 24 21:03:57 2017
@@ -311,8 +311,10 @@ def test_build(base_name, run_info, vari
commands.mkdir_p(source_path)
g_log.info('extracting sources for %r' % name)
- if archive_path[-6:] == "tar.gz":
- p = subprocess.Popen(args=['tar', '-xzf', archive_path],
+ if archive_path.endswith(".tar.gz") or \
+ archive_path.endswith(".tar.bz2") or \
+ archive_path.endswith(".tar.lzma"):
+ p = subprocess.Popen(args=['tar', '-xf', archive_path],
stdin=None,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
More information about the llvm-commits
mailing list