Fix the detection of the shell feature and disable some tests when its not present

llvm-svn: 264912
This commit is contained in:
Reid Kleckner 2016-03-30 20:15:50 +00:00
parent 4f88914c5b
commit 750e76d245
3 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,9 @@
# There is some bad quoting interaction between lit's internal shell, which is
# implemented in Python, and the Cygwin implementations of the Unix utilities.
# Avoid running these tests on Windows for now by requiring a real shell.
# REQUIRES: shell
# REQUIRES: x86
# RUN: mkdir -p %t.dir
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t

View File

@ -1,3 +1,9 @@
# There is some bad quoting interaction between lit's internal shell, which is
# implemented in Python, and the Cygwin implementations of the Unix utilities.
# Avoid running these tests on Windows for now by requiring a real shell.
# REQUIRES: shell
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-freebsd %s -o %t
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-freebsd \

View File

@ -188,7 +188,7 @@ if lit_config.useValgrind:
config.target_triple += '-vg'
# Shell execution
if platform.system() not in ['Windows'] or lit_config.getBashPath() != '':
if execute_external:
config.available_features.add('shell')
# Running on Darwin OS