From fe57c2641aebfdc0aec7aa53c1254834cd0ba256 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Sat, 17 Nov 2012 06:48:52 +0200 Subject: [PATCH] test: Add random UUID support to test-profile --- test/test-profile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/test-profile b/test/test-profile index 6414d18d7..0753e6ff4 100755 --- a/test/test-profile +++ b/test/test-profile @@ -6,6 +6,7 @@ from gi.repository import GObject import os import sys +import uuid import dbus import dbus.service import dbus.mainloop.glib @@ -47,7 +48,7 @@ if __name__ == '__main__': option_list = [ make_option("-u", "--uuid", action="store", type="string", dest="uuid", - default="spp"), + default=None), make_option("-p", "--path", action="store", type="string", dest="path", default="/foo/bar/profile"), @@ -105,6 +106,9 @@ if __name__ == '__main__': if (options.service): opts["Service"] = options.service + if not options.uuid: + options.uuid = str(uuid.uuid4()) + manager.RegisterProfile(options.path, options.uuid, opts) mainloop.run() -- 2.47.3