Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c519bc70 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Cert: Fix CertSelfTest by using correct checks in @metadata" am: bde51cf3

Change-Id: I47860e5f47967df161c3899b94051d0a79d57d15
parents 41f91a7c bde51cf3
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -68,12 +68,12 @@ def metadata(_do_not_use=None, pts_test_id=None, pts_test_name=None):
    del args["_do_not_use"]

    # Check if at least one optional parameter is valid
    if not any(args):
    if not any(args.values()):
        return _fail_decorator("at least one optional argument should be valid")

    # Validate pts_test_id and pts_test_name
    if (pts_test_id or pts_test_name) and \
        (not pts_test_id or not pts_test_name):
    if any((pts_test_id, pts_test_name)) and \
            not all((pts_test_id, pts_test_name)):
        return _fail_decorator("pts_test_id and pts_test_name must both "
                               "be valid if one of them is valid")