update only supported by minority of the tests
This commit is contained in:
parent
a2f3839ca8
commit
d94db61534
|
@ -49,14 +49,8 @@ class Test():
|
|||
action = "store_true",
|
||||
dest = "accept",
|
||||
help = "calculate results but always consider test as successfull")
|
||||
self.parser.add_option("-u", "--update",
|
||||
action = "store_true",
|
||||
dest = "update",
|
||||
help = "use current test results as new reference"
|
||||
)
|
||||
self.parser.set_defaults(debug = False,
|
||||
accept = False,
|
||||
update = False,
|
||||
)
|
||||
|
||||
def execute(self):
|
||||
|
@ -82,7 +76,7 @@ class Test():
|
|||
self.prepare(variant)
|
||||
self.run(variant)
|
||||
self.postprocess(variant)
|
||||
if self.options.update: # update requested
|
||||
if self.updateRequested: # update requested
|
||||
self.update(variant)
|
||||
elif not (self.options.accept or self.compare(variant)): # no update, do comparison
|
||||
return variant+1 # return culprit
|
||||
|
|
Loading…
Reference in New Issue