Skip to content

Commit 373325f

Browse files
Karan NagpalKaran Nagpal
authored andcommitted
Undo removed comments; fix project and build name default setting
1 parent f6805ed commit 373325f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

bin/helpers/capabilityHelper.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,18 @@ const caps = (bsConfig, zip) => {
9393
obj.projectNotifyURL = null;
9494

9595
if (bsConfig.run_settings) {
96+
obj.project = bsConfig.run_settings.project || bsConfig.run_settings.project_name || obj.project;
97+
obj.customBuildName = bsConfig.run_settings.build_name || bsConfig.run_settings.customBuildName || obj.customBuildName;
98+
obj.callbackURL = bsConfig.run_settings.callback_url;
99+
obj.projectNotifyURL = bsConfig.run_settings.project_notify_URL;
100+
obj.parallels = bsConfig.run_settings.parallels;
101+
96102
if (!(!Utils.isUndefined(bsConfig.run_settings.headless) && String(bsConfig.run_settings.headless) === "false")) {
97103
logger.info(`Running your tests in headless mode. Use --headed arg to run in headful mode.`);
98104
}
99-
obj.run_settings = bsConfig.run_settings;
105+
106+
// send run_settings as is for other capabilities
107+
obj.run_settings = JSON.stringify(bsConfig.run_settings);
100108
}
101109

102110
if(obj.parallels === Constants.cliMessages.RUN.DEFAULT_PARALLEL_MESSAGE) obj.parallels = undefined

0 commit comments

Comments
 (0)