mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Tools: bisect-helper.py: require a failure string if doing a --build
This commit is contained in:
parent
a9bb6745a6
commit
cda2e0f30c
@ -184,6 +184,10 @@ class BisectBuild(Bisect):
|
|||||||
super(BisectBuild, self).__init__(opts)
|
super(BisectBuild, self).__init__(opts)
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
|
if self.opts.build_failure_string is None:
|
||||||
|
self.progress("--build-failure-string is required when using --build")
|
||||||
|
self.exit_abort()
|
||||||
|
|
||||||
self.update_submodules()
|
self.update_submodules()
|
||||||
self.build() # may exit with skip or fail
|
self.build() # may exit with skip or fail
|
||||||
self.exit_pass()
|
self.exit_pass()
|
||||||
@ -294,8 +298,7 @@ if __name__ == '__main__':
|
|||||||
help="Help bisect a build failure")
|
help="Help bisect a build failure")
|
||||||
parser.add_option("--build-failure-string",
|
parser.add_option("--build-failure-string",
|
||||||
type='string',
|
type='string',
|
||||||
default=None,
|
help="Must be present in"
|
||||||
help="If supplied, must be present in"
|
|
||||||
"build output to count as a failure")
|
"build output to count as a failure")
|
||||||
|
|
||||||
group_autotest = optparse.OptionGroup(parser, "Run-AutoTest Options")
|
group_autotest = optparse.OptionGroup(parser, "Run-AutoTest Options")
|
||||||
|
Loading…
Reference in New Issue
Block a user