Display submission name

This commit is contained in:
nemunaire 2017-11-09 01:07:13 +01:00
parent e02dc2169d
commit 2e05a9f7fe

View File

@ -28,11 +28,17 @@ def signcheck(data):
yield MailTest("Those tests are limited to signature checking. THIS IS NOT THE SUBMISSION INTERFACE.", 2) yield MailTest("Those tests are limited to signature checking. THIS IS NOT THE SUBMISSION INTERFACE.", 2)
yield data yield data
def relatesTo(data, submissions_dir):
yield MailTest("This is the submission interface for %s." % os.path.basename(submissions_dir), -1)
yield data
def gen_checks(submissions_dir, check_content=False, check_submission_hash=None): def gen_checks(submissions_dir, check_content=False, check_submission_hash=None):
if HARD_MAX_SUBMISSION is not None and check_content: if check_content:
yield (late.check, [HARD_MAX_SUBMISSION, SOFT_MAX_SUBMISSION]) yield (relatesTo, [submissions_dir])
elif not check_content: if HARD_MAX_SUBMISSION is not None:
yield (late.check, [HARD_MAX_SUBMISSION, SOFT_MAX_SUBMISSION])
else:
yield signcheck yield signcheck
yield (envelope.check, [GNUPG_DIRECTORY, BETA]) yield (envelope.check, [GNUPG_DIRECTORY, BETA])
yield (signature.check, [GNUPG_DIRECTORY]) yield (signature.check, [GNUPG_DIRECTORY])