Commit ea41e544 authored by Denis Bilenko's avatar Denis Bilenko

testrunner: generate runid with random if uuid is not available (2.4)

parent 9d18eee5
......@@ -382,8 +382,12 @@ def main():
print_stats(options)
else:
if not options.runid:
import uuid
options.runid = str(uuid.uuid4())
try:
import uuid
options.runid = str(uuid.uuid4())
except ImportError:
import random
options.runid = str(random.random())[2:]
print 'Generated runid: %s' % (options.runid, )
if options.record:
run_tests(options, args)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment