Opened 15 years ago
Closed 15 years ago
#443 closed defect (fixed)
bitten-slave ignores invalid --config path
Reported by: | sanderdieleman@… | Owned by: | osimons |
---|---|---|---|
Priority: | minor | Milestone: | 0.6 |
Component: | Build slave | Version: | 0.5.3 |
Keywords: | slave configuration | Cc: | |
Operating System: | Linux |
Description
When bitten-slave is executed with the -f or --config parameter, and an invalid path (to a nonexistent file) is provided as its argument, this is silently ignored.
bitten-slave proceeds to run, but the configuration sent to the server is unmodified (because supposedly, no configuration file was provided).
Instead of this, it should at the very least print a warning.
Attachments (1)
Change History (3)
Changed 15 years ago by osimons
comment:1 Changed 15 years ago by osimons
- Milestone changed from 0.6.1 to 0.6
- Owner set to osimons
I agree. A configuration may contain important information for connecting and executing the build, and if one is specified but not found then that should be a reason just to abort.
I've attached a patch for this. I'll commit it soon unless anyone has comments or see better ways of doing this.
comment:2 Changed 15 years ago by osimons
- Resolution set to fixed
- Status changed from new to closed
Fixed in [749].
Throw error and exit if specified configuration file isn't found.