From: Ian Campbell Date: Thu, 1 Mar 2012 12:26:13 +0000 (+0000) Subject: libxl: allow specification of testidl random seed. X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=cad39d78f05280ce17b224df73b3fad4078e5a9d;p=xen.git 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 Acked-by: Ian Jackson --- diff --git a/tools/libxl/gentest.py b/tools/libxl/gentest.py index 410b9b76de..ef0cecf0fe 100644 --- a/tools/libxl/gentest.py +++ b/tools/libxl/gentest.py @@ -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 " sys.exit(1) - random.seed() + random.seed(os.getenv('LIBXL_TESTIDL_SEED')) (builtins,types) = idl.parse(sys.argv[1])