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

Commit efda926e 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 am: c519bc70

Change-Id: Id9c3aafd2c4bd04f010e3bac1365b2c76d9b4ecc
parents c34b38ae c519bc70
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")