We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a9588b3 + 3bbd176 commit d034d2dCopy full SHA for d034d2d
test/lit.cfg
@@ -1666,5 +1666,12 @@ if platform.system() == 'Linux':
1666
config.available_features.add("LinuxDistribution=" + distributor + '-' + release)
1667
lit_config.note('Running tests on %s-%s' % (distributor, release))
1668
1669
+# Copy environment variables specified in --param copy_env=..., overriding
1670
+# anything computed here. It's assumed that the person setting this knows what
1671
+# they're doing.
1672
+copy_env = lit_config.params.get('copy_env', None)
1673
+if copy_env is not None:
1674
+ for key in copy_env.split(':'):
1675
+ config.environment[key] = os.environ[key]
1676
1677
lit_config.note("Available features: " + ", ".join(sorted(config.available_features)))
0 commit comments