diff --git a/lib/command/run.js b/lib/command/run.js index b756ee863..4921ea03c 100644 --- a/lib/command/run.js +++ b/lib/command/run.js @@ -8,7 +8,11 @@ module.exports = async function (test, options) { // registering options globally to use in config // Backward compatibility for --profile process.profile = options.profile; - process.env.profile = options.profile; + + if (options.profile) { + process.env.profile = options.profile; + } + const configFile = options.config; let config = getConfig(configFile);