]> git.ipfire.org Git - thirdparty/hostap.git/commit
tests: Use argparse module with hwsim
authorJohannes Berg <johannes.berg@intel.com>
Wed, 30 Oct 2013 17:28:22 +0000 (19:28 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 30 Oct 2013 17:58:23 +0000 (19:58 +0200)
commit0b1faa8bf1a9be2b57c0bbbdb0f28c5dda41addb
tree9abab44ca747641bd31ac0efb46454a2546c83bb
parent2f3a3edd5dfdcf3fad6c4715843a6b5b0437c29d
tests: Use argparse module with hwsim

Instead of re-implementing a command-line parser, use the
argparse module.

The only real change (I hope) is that the test module must
now be given to the -f option without the .py suffix.

Also, --help now works, and if a test module/test name is
given that doesn't exist, the valid list is printed.

Signed-hostap: Johannes Berg <johannes.berg@intel.com>
tests/hwsim/README
tests/hwsim/run-all.sh
tests/hwsim/run-tests.py