diff options
author | Phil Sutter <phil@nwl.cc> | 2019-11-16 22:32:18 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2019-11-29 10:25:54 +0100 |
commit | 7e326d697ecf43ea029de5584e59701eb61ca87e (patch) | |
tree | 1346a5b809eb39055800aa66ec0a8828785cd19d /tests/py/nft-test.py | |
parent | 2f188c852ba264028b0834632f5f813d2f8bb4c6 (diff) |
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>
Diffstat (limited to 'tests/py/nft-test.py')
-rwxr-xr-x | tests/py/nft-test.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/py/nft-test.py b/tests/py/nft-test.py index ce42b5dd..6edca3c6 100755 --- a/tests/py/nft-test.py +++ b/tests/py/nft-test.py @@ -24,6 +24,7 @@ import tempfile TESTS_PATH = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, os.path.join(TESTS_PATH, '../../py/')) +os.environ['TZ'] = 'UTC-2' from nftables import Nftables |