diff options
author | Matthias Braun <matze@braunis.de> | 2018-08-31 16:23:07 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2018-08-31 16:23:07 +0000 |
commit | 946e408de7507cf0e19e87ae5c95b6f3c007b670 (patch) | |
tree | b1f73e93a202034bb2a47561f754ec2021e29b6c | |
parent | 6e02139b36ff4c5e5b3e5149cbc171750c8b7e33 (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
-rw-r--r-- | lit.cfg | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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') |