Skip to content

Commit

Permalink
Fixing the path issue for info, init, and stop for usage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
suryart committed Oct 13, 2020
1 parent f9e3860 commit c6fea0c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/commands/info.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ module.exports = function info(args) {

utils.setUsageReportingFlag(bsConfig, args.disableUsageReporting);

// set cypress config filename
utils.setCypressConfigFilename(bsConfig, args);

let buildId = args._[1];

let options = {
Expand Down
2 changes: 2 additions & 0 deletions bin/commands/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ function get_path(args) {
if (filename !== path.basename(filename)) {
let message = Constants.userMessages.CONFLICTING_INIT_ARGUMENTS;
logger.error(message);
// set cypress config filename
utils.setCypressConfigFilename(args.bstack_config, args);
utils.sendUsageReport(null, args, message, Constants.messageTypes.ERROR, 'conflicting_path_json_init');
return;
}
Expand Down
3 changes: 3 additions & 0 deletions bin/commands/stop.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ module.exports = function stop(args) {

utils.setUsageReportingFlag(bsConfig, args.disableUsageReporting);

// set cypress config filename
utils.setCypressConfigFilename(bsConfig, args);

let buildId = args._[1];

let options = {
Expand Down

0 comments on commit c6fea0c

Please sign in to comment.