Skip to content

Commit c6fea0c

Browse files
committed
Fixing the path issue for info, init, and stop for usage reporting
1 parent f9e3860 commit c6fea0c

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

bin/commands/info.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ module.exports = function info(args) {
1818

1919
utils.setUsageReportingFlag(bsConfig, args.disableUsageReporting);
2020

21+
// set cypress config filename
22+
utils.setCypressConfigFilename(bsConfig, args);
23+
2124
let buildId = args._[1];
2225

2326
let options = {

bin/commands/init.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ function get_path(args) {
1313
if (filename !== path.basename(filename)) {
1414
let message = Constants.userMessages.CONFLICTING_INIT_ARGUMENTS;
1515
logger.error(message);
16+
// set cypress config filename
17+
utils.setCypressConfigFilename(args.bstack_config, args);
1618
utils.sendUsageReport(null, args, message, Constants.messageTypes.ERROR, 'conflicting_path_json_init');
1719
return;
1820
}

bin/commands/stop.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ module.exports = function stop(args) {
1818

1919
utils.setUsageReportingFlag(bsConfig, args.disableUsageReporting);
2020

21+
// set cypress config filename
22+
utils.setCypressConfigFilename(bsConfig, args);
23+
2124
let buildId = args._[1];
2225

2326
let options = {

0 commit comments

Comments
 (0)