selftest: Add --tmpdir to 'samba-tool gpo create' test
commit82167ea06410b951ea7efcf98c34607cc1fe76fe
authorAndrew Bartlett <abartlet@samba.org>
Tue, 13 Nov 2012 02:31:53 +0000 (13 13:31 +1100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 3 Dec 2012 11:47:04 +0000 (3 12:47 +0100)
treef48f30b3a90688c275ffccfd8e1d9d438263a36e
parentfa34ae72aecfbfa1e80a0c27dee02f16e72dd558
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
(cherry picked from commit 095c7627dfbc1e25665d342699ea004dc8d0880b)
source4/scripting/python/samba/tests/samba_tool/base.py
source4/scripting/python/samba/tests/samba_tool/gpo.py