Fix Python extension build (thanks to sven.s.jonsson)

This commit is contained in:
Milan Broz
2012-03-03 18:47:33 +01:00
parent 625822e5a1
commit b30b53e4a7
2 changed files with 5 additions and 1 deletions

View File

@@ -52,6 +52,10 @@ def print_status(c):
print "ERROR"
return
if os.geteuid() != 0:
print "WARNING: You must be root to run this test, test skipped."
sys.exit(0)
os.system("dd if=/dev/zero of=" + IMG + " bs=1M count=32 >/dev/null 2>&1")
c = pycryptsetup.CryptSetup(