Skip to content

Commit

Permalink
Tell zdump to omit lines we don't want
Browse files Browse the repository at this point in the history
  • Loading branch information
stub42 committed Sep 26, 2021
1 parent e9d8703 commit 1404dd7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions gen_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1404dd7

Please sign in to comment.