Skip to content

Commit 946e408

Browse files
committed
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
1 parent 6e02139 commit 946e408

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lit.cfg

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ config.suffixes = ['.test']
2424
config.excludes = ['ABI-Testsuite']
2525
config.traditional_output = False
2626
config.single_source = False
27-
config.remote_host = lit_config.params.get('remote_host', config.remote_host)
2827
if 'SSH_AUTH_SOCK' in os.environ:
2928
config.environment['SSH_AUTH_SOCK'] = os.environ['SSH_AUTH_SOCK']
29+
if not hasattr(config, 'remote_host'):
30+
config.remote_host = ""
31+
config.remote_host = lit_config.params.get('remote_host', config.remote_host)
3032
if config.remote_host:
3133
config.test_modules.append('remote')
3234

0 commit comments

Comments
 (0)