1 #!/usr/bin/python 2 import e2fsprogs_uuid 3 import time 4 5 print "Generating uuid...", 6 try: 7 time = time.time() 8 u = e2fsprogs_uuid.generate() 9 except: 10 u = "FAIL" 11 print u, "...", time 12 13 print "Calling generate with param...", 14 try: 15 e2fsprogs_uuid.generate("param") 16 print "FAIL." 17 except: 18 print "OK" 19