check_connection fails for tests with -c ~/docker.yml, reason being CONFIG in the thread does not honor -c config_file.
Exception in thread Thread-195:
Traceback (most recent call last):
File "/home/travis/miniconda/envs/python_test/lib/python3.6/site-packages/sos/eval.py", line 30, in interpolate
return eval('f' + text_repr(text), global_dict, local_dict)
File "<string>", line 1, in <module>
NameError: name 'remote_user' is not defined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/travis/miniconda/envs/python_test/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/home/travis/miniconda/envs/python_test/lib/python3.6/threading.py", line 1182, in run
self.function(*self.args, **self.kwargs)
File "/home/travis/miniconda/envs/python_test/lib/python3.6/site-packages/sos/hosts.py", line 272, in test_remote_connection
'host': address, 'port': port})
File "/home/travis/miniconda/envs/python_test/lib/python3.6/site-packages/sos/eval.py", line 37, in cfg_interpolate
res = interpolate(text, local_dict, env.sos_dict.get('CONFIG', {}))
File "/home/travis/miniconda/envs/python_test/lib/python3.6/site-packages/sos/eval.py", line 32, in interpolate
raise ValueError(f'Failed to interpolate {text}: {e}')
ValueError: Failed to interpolate ssh {remote_user}@localhost -p 32768 pwd: name 'remote_user' is not defined
ref: https://travis-ci.org/vatlab/sos-pbs/builds/351167343
check_connection
fails for tests with-c ~/docker.yml
, reason beingCONFIG
in the thread does not honor-c config_file
.