Re: [PATCH nft] nft-test.py: use tempfile module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jun 19, 2019 at 12:39:44PM +0200, Pablo Neira Ayuso wrote:
> On Tue, Jun 18, 2019 at 02:21:27PM -0400, Eric Garver wrote:
> > os.tmpfile() is not in python3.
> 
> If I apply:
> 
> https://patchwork.ozlabs.org/patch/1116034/
> 
> and this patch, it's getting better, but still I hit one problem:
> 
> # python3 nft-test.py
> INFO: Log will be available at /tmp/nftables-test.log
> any/fwd.t: OK
> any/rt.t: OK
> any/queue.t: OK
> any/dup.t: OK
> any/log.t: OK
> Traceback (most recent call last):
>   File "nft-test.py", line 1455, in <module>
>     main()
>   File "nft-test.py", line 1423, in main
>     result = run_test_file(filename, force_all_family_option,
> specific_file)
>   File "nft-test.py", line 1291, in run_test_file
>     filename_path)
>   File "nft-test.py", line 846, in rule_add
>     rule_output.rstrip()) != 0:
>   File "nft-test.py", line 495, in set_check_element
>     if (cmp(rule1[:pos1], rule2[:pos2]) != 0):
> NameError: name 'cmp' is not defined

I will post a short series today to address this as well.



[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux