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",
|
action = "store_true",
|
||||||
dest = "accept",
|
dest = "accept",
|
||||||
help = "calculate results but always consider test as successfull")
|
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,
|
self.parser.set_defaults(debug = False,
|
||||||
accept = False,
|
accept = False,
|
||||||
update = False,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
def execute(self):
|
def execute(self):
|
||||||
|
@ -82,7 +76,7 @@ class Test():
|
||||||
self.prepare(variant)
|
self.prepare(variant)
|
||||||
self.run(variant)
|
self.run(variant)
|
||||||
self.postprocess(variant)
|
self.postprocess(variant)
|
||||||
if self.options.update: # update requested
|
if self.updateRequested: # update requested
|
||||||
self.update(variant)
|
self.update(variant)
|
||||||
elif not (self.options.accept or self.compare(variant)): # no update, do comparison
|
elif not (self.options.accept or self.compare(variant)): # no update, do comparison
|
||||||
return variant+1 # return culprit
|
return variant+1 # return culprit
|
||||||
|
|
Loading…
Reference in New Issue