selftest: Add --tmpdir to 'samba-tool gpo create' test
authorAndrew Bartlett <abartlet@samba.org>
Tue, 13 Nov 2012 02:31:53 +0000 (13:31 +1100)
committerStefan Metzmacher <metze@samba.org>
Tue, 13 Nov 2012 09:50:56 +0000 (10:50 +0100)
commit095c7627dfbc1e25665d342699ea004dc8d0880b
tree128dda494036b6977850094c67afbf35f3fc3e61
parentc5f53ed580d92088f544a7d66b8b276fef8f3ab7
selftest: Add --tmpdir to 'samba-tool gpo create' test

This was the cause of the flakey test, and was only noticed when
multiple different users ran autobuild at the same time on the same
server.

We use shutil.rmtree to wipe the directory before the tests finishes
as required by the TestCaseInTempDir class.

Andrew Bartlett

Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Nov 13 10:50:56 CET 2012 on sn-devel-104
source4/scripting/python/samba/tests/samba_tool/base.py
source4/scripting/python/samba/tests/samba_tool/gpo.py