aboutsummaryrefslogtreecommitdiff
path: root/lit.cfg
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2018-08-31 16:23:07 +0000
committerMatthias Braun <matze@braunis.de>2018-08-31 16:23:07 +0000
commit946e408de7507cf0e19e87ae5c95b6f3c007b670 (patch)
treeb1f73e93a202034bb2a47561f754ec2021e29b6c /lit.cfg
parent6e02139b36ff4c5e5b3e5149cbc171750c8b7e33 (diff)
lit.cfg: Initialize remote_host if missing
This should fix the tests in litsupport-tests git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@341224 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lit.cfg')
-rw-r--r--lit.cfg4
1 files changed, 3 insertions, 1 deletions
diff --git a/lit.cfg b/lit.cfg
index 40353913..6787d8c6 100644
--- a/lit.cfg
+++ b/lit.cfg
@@ -24,9 +24,11 @@ config.suffixes = ['.test']
config.excludes = ['ABI-Testsuite']
config.traditional_output = False
config.single_source = False
-config.remote_host = lit_config.params.get('remote_host', config.remote_host)
if 'SSH_AUTH_SOCK' in os.environ:
config.environment['SSH_AUTH_SOCK'] = os.environ['SSH_AUTH_SOCK']
+if not hasattr(config, 'remote_host'):
+ config.remote_host = ""
+config.remote_host = lit_config.params.get('remote_host', config.remote_host)
if config.remote_host:
config.test_modules.append('remote')