From 1404dd70d379d82ed14ff3ae4c71e5a5a5b2b148 Mon Sep 17 00:00:00 2001 From: Stuart Bishop Date: Sun, 26 Sep 2021 20:15:18 +1000 Subject: Tell zdump to omit lines we don't want --- gen_tests.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gen_tests.py b/gen_tests.py index 8e801b5..ef832fe 100644 --- a/gen_tests.py +++ b/gen_tests.py @@ -27,12 +27,9 @@ def main(): # the daterange we test against - zdump understands v2 format # files and will output historical records we can't cope with # otherwise. - command = [zdump, '-v', '-c', '1902,2038', zone] + command = [zdump, '-V', '-c', '1902,2038', zone] zd_out = subprocess.check_output(command, encoding="utf8") - # Skip bogus output on 64bit architectures, per Bug #213816 - lines = [ - line.strip() for line in zd_out.splitlines() - if not (line.strip().endswith('NULL') or '214748' in line)] + lines = [line.strip() for line in zd_out.splitlines()] for line in lines: print(line, file=datf) -- cgit v1.2.1