{"action":"created","comment":{"url":"https://api.github.com/repos/01org/parameter-framework/pulls/comments/26921718","id":26921718,"diff_hunk":"@@ -0,0 +1,79 @@\n+#!/usr/bin/python2\n+# -*-coding:utf-8 -*\n+\n+# Copyright (c) 2011-2015, Intel Corporation\n+# All rights reserved.\n+#\n+# Redistribution and use in source and binary forms, with or without modification,\n+# are permitted provided that the following conditions are met:\n+#\n+# 1. Redistributions of source code must retain the above copyright notice, this\n+# list of conditions and the following disclaimer.\n+#\n+# 2. Redistributions in binary form must reproduce the above copyright notice,\n+# this list of conditions and the following disclaimer in the documentation and/or\n+# other materials provided with the distribution.\n+#\n+# 3. Neither the name of the copyright holder nor the names of its contributors\n+# may be used to endorse or promote products derived from this software without\n+# specific prior written permission.\n+#\n+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n+# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n+# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n+# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR\n+# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n+# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n+# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\n+# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n+# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+\n+\"\"\"\n+Create a test suite for all tests about SET/GET commands\n+\n+Set the test environment.\n+\n+Uses PfwSetTsetSuite to create a single instance of the HAL\n+for all the SET/GEt commands.\n+\n+These commands are tested using the methods of the classes\n+\"BooleanTestCase\", etc...\n+\"\"\"\n+\n+import os, sys\n+import unittest\n+import argparse\n+import shutil\n+import tempfile\n+from Util import PfwUnitTestLib\n+\n+\n+class Logger(object):\n+\n+    def __init__(self, filename=\"Default.log\"):\n+        self.terminal = sys.stdout\n+        self.log = open(filename, \"a\")\n+\n+    def write(self, message):\n+        self.terminal.write(message)\n+        self.log.write(message)\n+\n+def testsRunner(testDirectory):\n+\n+    tests = unittest.defaultTestLoader.discover(testDirectory, pattern='t*.py')\n+    runner = unittest.TextTestRunner(verbosity=2)\n+\n+    return runner.run(tests).wasSuccessful()\n+\n+def main():\n+\n+    os.environ[\"PFW_FILESYSTEM\"] = os.environ[\"PFW_FS\"]","path":"test/functionnal-tests/ACTCampaignEngine.py","position":71,"original_position":71,"commit_id":"0c4992755363cac25a80ba83fa729f7f64c4e631","original_commit_id":"0c4992755363cac25a80ba83fa729f7f64c4e631","user":{"login":"AdrienMQ","id":9973873,"avatar_url":"https://avatars.githubusercontent.com/u/9973873?v=3","gravatar_id":"","url":"https://api.github.com/users/AdrienMQ","html_url":"https://github.com/AdrienMQ","followers_url":"https://api.github.com/users/AdrienMQ/followers","following_url":"https://api.github.com/users/AdrienMQ/following{/other_user}","gists_url":"https://api.github.com/users/AdrienMQ/gists{/gist_id}","starred_url":"https://api.github.com/users/AdrienMQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdrienMQ/subscriptions","organizations_url":"https://api.github.com/users/AdrienMQ/orgs","repos_url":"https://api.github.com/users/AdrienMQ/repos","events_url":"https://api.github.com/users/AdrienMQ/events{/privacy}","received_events_url":"https://api.github.com/users/AdrienMQ/received_events","type":"User","site_admin":false},"body":"Now, we remove the test-parameter folder at the end of the tests (we use shutils.rmtree)\r\n","created_at":"2015-03-23T09:17:30Z","updated_at":"2015-03-23T09:17:30Z","html_url":"https://github.com/01org/parameter-framework/pull/69#discussion_r26921718","pull_request_url":"https://api.github.com/repos/01org/parameter-framework/pulls/69","_links":{"self":{"href":"https://api.github.com/repos/01org/parameter-framework/pulls/comments/26921718"},"html":{"href":"https://github.com/01org/parameter-framework/pull/69#discussion_r26921718"},"pull_request":{"href":"https://api.github.com/repos/01org/parameter-framework/pulls/69"}}},"pull_request":{"url":"https://api.github.com/repos/01org/parameter-framework/pulls/69","id":31356105,"html_url":"https://github.com/01org/parameter-framework/pull/69","diff_url":"https://github.com/01org/parameter-framework/pull/69.diff","patch_url":"https://github.com/01org/parameter-framework/pull/69.patch","issue_url":"https://api.github.com/repos/01org/parameter-framework/issues/69","number":69,"state":"open","locked":false,"title":"Functionnal test","user":{"login":"AdrienMQ","id":9973873,"avatar_url":"https://avatars.githubusercontent.com/u/9973873?v=3","gravatar_id":"","url":"https://api.github.com/users/AdrienMQ","html_url":"https://github.com/AdrienMQ","followers_url":"https://api.github.com/users/AdrienMQ/followers","following_url":"https://api.github.com/users/AdrienMQ/following{/other_user}","gists_url":"https://api.github.com/users/AdrienMQ/gists{/gist_id}","starred_url":"https://api.github.com/users/AdrienMQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdrienMQ/subscriptions","organizations_url":"https://api.github.com/users/AdrienMQ/orgs","repos_url":"https://api.github.com/users/AdrienMQ/repos","events_url":"https://api.github.com/users/AdrienMQ/events{/privacy}","received_events_url":"https://api.github.com/users/AdrienMQ/received_events","type":"User","site_admin":false},"body":"These patches add the functionnal tests to the parameter-framework.\r\nThey also dissociate the make install and the make test.","created_at":"2015-03-17T17:09:24Z","updated_at":"2015-03-23T09:17:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aa0e222afdd7ff17db4630b220dd6b7f4a0c0630","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/01org/parameter-framework/pulls/69/commits","review_comments_url":"https://api.github.com/repos/01org/parameter-framework/pulls/69/comments","review_comment_url":"https://api.github.com/repos/01org/parameter-framework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/01org/parameter-framework/issues/69/comments","statuses_url":"https://api.github.com/repos/01org/parameter-framework/statuses/0c4992755363cac25a80ba83fa729f7f64c4e631","head":{"label":"AdrienMQ:functionnal_test","ref":"functionnal_test","sha":"0c4992755363cac25a80ba83fa729f7f64c4e631","user":{"login":"AdrienMQ","id":9973873,"avatar_url":"https://avatars.githubusercontent.com/u/9973873?v=3","gravatar_id":"","url":"https://api.github.com/users/AdrienMQ","html_url":"https://github.com/AdrienMQ","followers_url":"https://api.github.com/users/AdrienMQ/followers","following_url":"https://api.github.com/users/AdrienMQ/following{/other_user}","gists_url":"https://api.github.com/users/AdrienMQ/gists{/gist_id}","starred_url":"https://api.github.com/users/AdrienMQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdrienMQ/subscriptions","organizations_url":"https://api.github.com/users/AdrienMQ/orgs","repos_url":"https://api.github.com/users/AdrienMQ/repos","events_url":"https://api.github.com/users/AdrienMQ/events{/privacy}","received_events_url":"https://api.github.com/users/AdrienMQ/received_events","type":"User","site_admin":false},"repo":{"id":32165103,"name":"parameter-framework","full_name":"AdrienMQ/parameter-framework","owner":{"login":"AdrienMQ","id":9973873,"avatar_url":"https://avatars.githubusercontent.com/u/9973873?v=3","gravatar_id":"","url":"https://api.github.com/users/AdrienMQ","html_url":"https://github.com/AdrienMQ","followers_url":"https://api.github.com/users/AdrienMQ/followers","following_url":"https://api.github.com/users/AdrienMQ/following{/other_user}","gists_url":"https://api.github.com/users/AdrienMQ/gists{/gist_id}","starred_url":"https://api.github.com/users/AdrienMQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdrienMQ/subscriptions","organizations_url":"https://api.github.com/users/AdrienMQ/orgs","repos_url":"https://api.github.com/users/AdrienMQ/repos","events_url":"https://api.github.com/users/AdrienMQ/events{/privacy}","received_events_url":"https://api.github.com/users/AdrienMQ/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AdrienMQ/parameter-framework","description":"Plugin-based and rule-based framework for describing and controlling parameters","fork":true,"url":"https://api.github.com/repos/AdrienMQ/parameter-framework","forks_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/forks","keys_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/teams","hooks_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/hooks","issue_events_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/issues/events{/number}","events_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/events","assignees_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/assignees{/user}","branches_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/branches{/branch}","tags_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/tags","blobs_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/languages","stargazers_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/stargazers","contributors_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/contributors","subscribers_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/subscribers","subscription_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/subscription","commits_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/contents/{+path}","compare_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/merges","archive_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/downloads","issues_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/issues{/number}","pulls_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/labels{/name}","releases_url":"https://api.github.com/repos/AdrienMQ/parameter-framework/releases{/id}","created_at":"2015-03-13T15:52:32Z","updated_at":"2015-03-16T08:28:59Z","pushed_at":"2015-03-20T18:17:52Z","git_url":"git://github.com/AdrienMQ/parameter-framework.git","ssh_url":"git@github.com:AdrienMQ/parameter-framework.git","clone_url":"https://github.com/AdrienMQ/parameter-framework.git","svn_url":"https://github.com/AdrienMQ/parameter-framework","homepage":"","size":37550,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"01org:master","ref":"master","sha":"3fe47d066eda66ebf8459caa79b5ff7125cb82bd","user":{"login":"01org","id":1635439,"avatar_url":"https://avatars.githubusercontent.com/u/1635439?v=3","gravatar_id":"","url":"https://api.github.com/users/01org","html_url":"https://github.com/01org","followers_url":"https://api.github.com/users/01org/followers","following_url":"https://api.github.com/users/01org/following{/other_user}","gists_url":"https://api.github.com/users/01org/gists{/gist_id}","starred_url":"https://api.github.com/users/01org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/01org/subscriptions","organizations_url":"https://api.github.com/users/01org/orgs","repos_url":"https://api.github.com/users/01org/repos","events_url":"https://api.github.com/users/01org/events{/privacy}","received_events_url":"https://api.github.com/users/01org/received_events","type":"Organization","site_admin":false},"repo":{"id":16009363,"name":"parameter-framework","full_name":"01org/parameter-framework","owner":{"login":"01org","id":1635439,"avatar_url":"https://avatars.githubusercontent.com/u/1635439?v=3","gravatar_id":"","url":"https://api.github.com/users/01org","html_url":"https://github.com/01org","followers_url":"https://api.github.com/users/01org/followers","following_url":"https://api.github.com/users/01org/following{/other_user}","gists_url":"https://api.github.com/users/01org/gists{/gist_id}","starred_url":"https://api.github.com/users/01org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/01org/subscriptions","organizations_url":"https://api.github.com/users/01org/orgs","repos_url":"https://api.github.com/users/01org/repos","events_url":"https://api.github.com/users/01org/events{/privacy}","received_events_url":"https://api.github.com/users/01org/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/01org/parameter-framework","description":"Plugin-based and rule-based framework for describing and controlling parameters","fork":false,"url":"https://api.github.com/repos/01org/parameter-framework","forks_url":"https://api.github.com/repos/01org/parameter-framework/forks","keys_url":"https://api.github.com/repos/01org/parameter-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/01org/parameter-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/01org/parameter-framework/teams","hooks_url":"https://api.github.com/repos/01org/parameter-framework/hooks","issue_events_url":"https://api.github.com/repos/01org/parameter-framework/issues/events{/number}","events_url":"https://api.github.com/repos/01org/parameter-framework/events","assignees_url":"https://api.github.com/repos/01org/parameter-framework/assignees{/user}","branches_url":"https://api.github.com/repos/01org/parameter-framework/branches{/branch}","tags_url":"https://api.github.com/repos/01org/parameter-framework/tags","blobs_url":"https://api.github.com/repos/01org/parameter-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/01org/parameter-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/01org/parameter-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/01org/parameter-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/01org/parameter-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/01org/parameter-framework/languages","stargazers_url":"https://api.github.com/repos/01org/parameter-framework/stargazers","contributors_url":"https://api.github.com/repos/01org/parameter-framework/contributors","subscribers_url":"https://api.github.com/repos/01org/parameter-framework/subscribers","subscription_url":"https://api.github.com/repos/01org/parameter-framework/subscription","commits_url":"https://api.github.com/repos/01org/parameter-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/01org/parameter-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/01org/parameter-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/01org/parameter-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/01org/parameter-framework/contents/{+path}","compare_url":"https://api.github.com/repos/01org/parameter-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/01org/parameter-framework/merges","archive_url":"https://api.github.com/repos/01org/parameter-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/01org/parameter-framework/downloads","issues_url":"https://api.github.com/repos/01org/parameter-framework/issues{/number}","pulls_url":"https://api.github.com/repos/01org/parameter-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/01org/parameter-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/01org/parameter-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/01org/parameter-framework/labels{/name}","releases_url":"https://api.github.com/repos/01org/parameter-framework/releases{/id}","created_at":"2014-01-17T19:24:01Z","updated_at":"2015-03-19T18:43:52Z","pushed_at":"2015-03-23T08:46:49Z","git_url":"git://github.com/01org/parameter-framework.git","ssh_url":"git@github.com:01org/parameter-framework.git","clone_url":"https://github.com/01org/parameter-framework.git","svn_url":"https://github.com/01org/parameter-framework","homepage":"","size":39535,"stargazers_count":7,"watchers_count":7,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":12,"mirror_url":null,"open_issues_count":18,"forks":12,"open_issues":18,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/01org/parameter-framework/pulls/69"},"html":{"href":"https://github.com/01org/parameter-framework/pull/69"},"issue":{"href":"https://api.github.com/repos/01org/parameter-framework/issues/69"},"comments":{"href":"https://api.github.com/repos/01org/parameter-framework/issues/69/comments"},"review_comments":{"href":"https://api.github.com/repos/01org/parameter-framework/pulls/69/comments"},"review_comment":{"href":"https://api.github.com/repos/01org/parameter-framework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/01org/parameter-framework/pulls/69/commits"},"statuses":{"href":"https://api.github.com/repos/01org/parameter-framework/statuses/0c4992755363cac25a80ba83fa729f7f64c4e631"}}}}