]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests/py: Set a fixed timezone in nft-test.py
authorPhil Sutter <phil@nwl.cc>
Sat, 16 Nov 2019 21:32:18 +0000 (22:32 +0100)
committerPhil Sutter <phil@nwl.cc>
Fri, 29 Nov 2019 09:25:54 +0000 (10:25 +0100)
commit7e326d697ecf43ea029de5584e59701eb61ca87e
tree1346a5b809eb39055800aa66ec0a8828785cd19d
parent2f188c852ba264028b0834632f5f813d2f8bb4c6
tests/py: Set a fixed timezone in nft-test.py

Payload generated for 'meta time' matches depends on host's timezone and
DST setting. To produce constant output, set a fixed timezone in
nft-test.py. Choose UTC-2 since most payloads are correct then, adjust
the remaining two tests.

Fixes: 0518ea3f70d8c ("tests: add meta time test cases")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Ander Juaristi <a@juaristi.eus>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/py/any/meta.t
tests/py/any/meta.t.payload
tests/py/nft-test.py