Tests: use urandom instead of random
authorIsaac Boukris <iboukris@gmail.com>
Wed, 6 Apr 2016 19:23:14 +0000 (22:23 +0300)
committerSimo Sorce <simo@redhat.com>
Tue, 12 Apr 2016 22:11:09 +0000 (18:11 -0400)
Useful when running tests on VM with low entropy

Reviewed-by: Simo Sorce <simo@redhat.com>
Closexs #77

tests/magtests.py

index 5abede0..51fa050 100755 (executable)
@@ -143,7 +143,7 @@ def setup_kdc(testdir, wrapenv):
     kdcenv.update(wrapenv)
 
     with (open(testlog, 'a')) as logfile:
-        ksetup = subprocess.Popen(["kdb5_util", "create", "-s",
+        ksetup = subprocess.Popen(["kdb5_util", "create", "-W", "-s",
                                    "-r", TESTREALM, "-P", KDC_PASSWORD],
                                   stdout=logfile, stderr=logfile,
                                   env=kdcenv, preexec_fn=os.setsid)