aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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')