From f0b3a334af0d692fb05eab7a514fee2cbfb36786 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 15 Nov 2012 13:32:46 +0200 Subject: [PATCH] test: Remove hardcoded default name from test-profile --- test/test-profile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/test/test-profile b/test/test-profile index 169196a94..18183589d 100755 --- a/test/test-profile +++ b/test/test-profile @@ -53,7 +53,7 @@ if __name__ == '__main__': default="/foo/bar/profile"), make_option("-n", "--name", action="store", type="string", dest="name", - default="Test Profile"), + default=None), make_option("-s", "--server", action="store_const", const="server", dest="role"), @@ -80,14 +80,13 @@ if __name__ == '__main__': mainloop = GObject.MainLoop() - if options.uuid == "hfp": - options.name = "HFP HandsFree" - opts = { - "Name" : options.name, "AutoConnect" : options.auto_connect, } + if (options.name): + opts["Name"] = options.name + if (options.role): opts["Role"] = options.role -- 2.47.3