5 from subprocess import check_output
8 when = 'now + 24 hours'
9 cmd = ['env', 'TZ=UTC', 'date', '-d' , when, '+%A %H:00 %Z']
10 return check_output(cmd).decode('utf8').strip()
12 def call_for_testing_contents(args) -> str:
13 jinja2_env = jinja2.Environment( # nosec jinja2_autoescape_false
14 loader=jinja2.FileSystemLoader('config/release_management/templates'))
16 return (jinja2_env.get_template('call_for_manual_testers.mdwn').render(
24 if __name__ == '__main__':
26 parser = argparse.ArgumentParser()
27 parser.add_argument('--dist', required=True)
28 parser.add_argument('--version', required=True)
29 parser.add_argument('--pad', required=True)
30 args = parser.parse_args()
32 print(call_for_testing_contents(args))