[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 06 of 23] libxl: allow specification of testidl random seed
# HG changeset patch # User Ian Campbell <ian.campbell@xxxxxxxxxx> # Date 1329148132 0 # Node ID 1ace05e41c39f3620b423056004b709965ff6d80 # Parent 192eefb9e00e048333b01ee732a1b07071b90e7e libxl: allow specification of testidl random seed. Useful if you are interested in before/after results of changing the IDL or generator. Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> diff -r 192eefb9e00e -r 1ace05e41c39 tools/libxl/gentest.py --- a/tools/libxl/gentest.py Mon Feb 13 15:48:52 2012 +0000 +++ b/tools/libxl/gentest.py Mon Feb 13 15:48:52 2012 +0000 @@ -1,5 +1,6 @@ #!/usr/bin/python +import os import sys import re import random @@ -72,7 +73,7 @@ if __name__ == '__main__': print >>sys.stderr, "Usage: gentest.py <idl> <implementation>" sys.exit(1) - random.seed() + random.seed(os.getenv('LIBXL_TESTIDL_SEED')) (builtins,types) = idl.parse(sys.argv[1]) _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |