Merge "Fix to enable `--config-file` option"
diff --git a/tempest/config.py b/tempest/config.py
index a8a3bc3..888f178 100644
--- a/tempest/config.py
+++ b/tempest/config.py
@@ -1229,6 +1229,11 @@
 
     def set_config_path(self, path):
         self._path = path
+        # FIXME(masayukig): bug#1783751 To pass the config file path to child
+        # processes, we need to set the environment variables here as a
+        # workaround.
+        os.environ['TEMPEST_CONFIG_DIR'] = os.path.dirname(path)
+        os.environ['TEMPEST_CONFIG'] = os.path.basename(path)
 
 
 CONF = TempestConfigProxy()