Re: [PATCH iptables] tests: add regression tests for xtables-translate

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

 



> Nice... But how this works? :)
>
> # python xlate-test.py
> Traceback (most recent call last):
>   File "xlate-test.py", line 85, in <module>
>     main()
>   File "xlate-test.py", line 78, in main
>     load_test_files()
>   File "xlate-test.py", line 65, in load_test_files
>     run_test(test, payload)
>   File "xlate-test.py", line 43, in run_test
>     output = subprocess.run(shlex.split(line), stdout=subprocess.PIPE)
> AttributeError: 'module' object has no attribute 'run'

The script is written using python3. The shebang points to the python3
interpreter, so the script can be executed with ./xlate-test.py or
python3 xlate-test.py.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux