{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/mozregression/issues/190","labels_url":"https://api.github.com/repos/mozilla/mozregression/issues/190/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/mozregression/issues/190/comments","events_url":"https://api.github.com/repos/mozilla/mozregression/issues/190/events","html_url":"https://github.com/mozilla/mozregression/pull/190","id":58408836,"number":190,"title":"Fix Bug 1132867 - Allow using mozregression with a particular pref","user":{"login":"imjalpreet","id":6432146,"avatar_url":"https://avatars.githubusercontent.com/u/6432146?v=3","gravatar_id":"","url":"https://api.github.com/users/imjalpreet","html_url":"https://github.com/imjalpreet","followers_url":"https://api.github.com/users/imjalpreet/followers","following_url":"https://api.github.com/users/imjalpreet/following{/other_user}","gists_url":"https://api.github.com/users/imjalpreet/gists{/gist_id}","starred_url":"https://api.github.com/users/imjalpreet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imjalpreet/subscriptions","organizations_url":"https://api.github.com/users/imjalpreet/orgs","repos_url":"https://api.github.com/users/imjalpreet/repos","events_url":"https://api.github.com/users/imjalpreet/events{/privacy}","received_events_url":"https://api.github.com/users/imjalpreet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-20T20:52:44Z","updated_at":"2015-02-23T09:15:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mozilla/mozregression/pulls/190","html_url":"https://github.com/mozilla/mozregression/pull/190","diff_url":"https://github.com/mozilla/mozregression/pull/190.diff","patch_url":"https://github.com/mozilla/mozregression/pull/190.patch"},"body":"Review: @parkouss "},"comment":{"url":"https://api.github.com/repos/mozilla/mozregression/issues/comments/75509902","html_url":"https://github.com/mozilla/mozregression/pull/190#issuecomment-75509902","issue_url":"https://api.github.com/repos/mozilla/mozregression/issues/190","id":75509902,"user":{"login":"parkouss","id":7723923,"avatar_url":"https://avatars.githubusercontent.com/u/7723923?v=3","gravatar_id":"","url":"https://api.github.com/users/parkouss","html_url":"https://github.com/parkouss","followers_url":"https://api.github.com/users/parkouss/followers","following_url":"https://api.github.com/users/parkouss/following{/other_user}","gists_url":"https://api.github.com/users/parkouss/gists{/gist_id}","starred_url":"https://api.github.com/users/parkouss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parkouss/subscriptions","organizations_url":"https://api.github.com/users/parkouss/orgs","repos_url":"https://api.github.com/users/parkouss/repos","events_url":"https://api.github.com/users/parkouss/events{/privacy}","received_events_url":"https://api.github.com/users/parkouss/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T09:15:20Z","updated_at":"2015-02-23T09:15:20Z","body":"You have to add the created prefs object like this:\r\n\r\nlauncher_kwargs = dict(\r\naddons=options.addons,\r\nprofile=options.profile,\r\ncmdargs=options.cmdargs,\r\npreferences=prefs,\r\n)\r\n\r\nThis is because the variable launcher_kwargs will then be passed here : https://github.com/mozilla/mozregression/blob/master/mozregression/test_runner.py#L29, then we will use it here: https://github.com/mozilla/mozregression/blob/master/mozregression/test_runner.py#L131 and finally it will override the default that you just added here: https://github.com/mozilla/mozregression/pull/190/files#diff-9be3d66461b771098aa1bcc305505480R113\r\n\r\nThis is how your prefs object will end up in the launchers.MozRunnerLauncher._start method.\r\n\r\nTell me if it is not clear, I think it is pretty important to understand this."}}