mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2024-12-22 12:48:51 +00:00
tap-driver: Handle --enable-hard-errors
This commit is contained in:
parent
a3753c1b2b
commit
98d12ea220
@ -43,6 +43,7 @@ class Driver:
|
|||||||
self.trs = open(args.trs_file, "w")
|
self.trs = open(args.trs_file, "w")
|
||||||
self.color_tests = args.color_tests
|
self.color_tests = args.color_tests
|
||||||
self.expect_failure = args.expect_failure
|
self.expect_failure = args.expect_failure
|
||||||
|
self.enable_hard_errors = args.enable_hard_errors
|
||||||
|
|
||||||
def report(self, code, *args):
|
def report(self, code, *args):
|
||||||
CODES = {
|
CODES = {
|
||||||
@ -92,7 +93,10 @@ class Driver:
|
|||||||
self.report("SKIP", *args)
|
self.report("SKIP", *args)
|
||||||
|
|
||||||
def report_error(self, description=""):
|
def report_error(self, description=""):
|
||||||
|
if self.enable_hard_errors:
|
||||||
self.report("ERROR", "", description)
|
self.report("ERROR", "", description)
|
||||||
|
else:
|
||||||
|
self.result_fail(description)
|
||||||
|
|
||||||
def process(self, output):
|
def process(self, output):
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user