{"action":"created","issue":{"url":"https://api.github.com/repos/ARMmbed/greentea/issues/116","repository_url":"https://api.github.com/repos/ARMmbed/greentea","labels_url":"https://api.github.com/repos/ARMmbed/greentea/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/ARMmbed/greentea/issues/116/comments","events_url":"https://api.github.com/repos/ARMmbed/greentea/issues/116/events","html_url":"https://github.com/ARMmbed/greentea/pull/116","id":153026899,"number":116,"title":"Simple system info report for debug / support","user":{"login":"PrzemekWirkus","id":6360720,"avatar_url":"https://avatars.githubusercontent.com/u/6360720?v=3","gravatar_id":"","url":"https://api.github.com/users/PrzemekWirkus","html_url":"https://github.com/PrzemekWirkus","followers_url":"https://api.github.com/users/PrzemekWirkus/followers","following_url":"https://api.github.com/users/PrzemekWirkus/following{/other_user}","gists_url":"https://api.github.com/users/PrzemekWirkus/gists{/gist_id}","starred_url":"https://api.github.com/users/PrzemekWirkus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrzemekWirkus/subscriptions","organizations_url":"https://api.github.com/users/PrzemekWirkus/orgs","repos_url":"https://api.github.com/users/PrzemekWirkus/repos","events_url":"https://api.github.com/users/PrzemekWirkus/events{/privacy}","received_events_url":"https://api.github.com/users/PrzemekWirkus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ARMmbed/greentea/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-04T14:32:45Z","updated_at":"2016-05-05T09:34:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ARMmbed/greentea/pulls/116","html_url":"https://github.com/ARMmbed/greentea/pull/116","diff_url":"https://github.com/ARMmbed/greentea/pull/116.diff","patch_url":"https://github.com/ARMmbed/greentea/pull/116.patch"},"body":"## Description\r\n* There is a need to easily report test tools versions so users can report them to team.\r\n* This PR adds kernel of a functionality to print information about system and tools/Python packages used to run test environment.\r\n* It will help us to diagnose certain issues reported by external and internal tools users.\r\n\r\n\r\n## Changes:\r\n* Add --info switch, prints system info and exits\r\n\r\n## Example\r\n\r\nSimple command:\r\n```\r\n$ mbedgt --info\r\n```\r\n\r\nPrints in JSON formated output data regarding system and mbed tools packages manes / versions / dependencies:\r\n\r\nExample output:\r\n```json\r\n{\r\n    \"python\": {\r\n        \"version\": \"2.7.11\",\r\n        \"version_info\": \"sys.version_info(major=2, minor=7, micro=11, releaselevel='final', serial=0)\"\r\n    },\r\n    \"mbed-tools\": {\r\n        \"packages\": {\r\n            \"mbed-ls\": \"0.2.6\",\r\n            \"pyserial\": \"3.0.1\",\r\n            \"mbed-host-tests\": \"0.2.6\",\r\n            \"mbed-greentea\": \"0.2.10\"\r\n        },\r\n        \"details\": {\r\n            \"mbed-ls\": [\r\n                \"mbed-ls 0.2.6\",\r\n                \"prettytable 0.7.2\"\r\n            ],\r\n            \"pyserial\": [\r\n                \"pyserial 3.0.1\"\r\n            ],\r\n            \"mbed-host-tests\": [\r\n                \"mbed-host-tests 0.2.6\",\r\n                \"prettytable 0.7.2\",\r\n                \"pyserial 3.0.1\"\r\n            ],\r\n            \"mbed-greentea\": [\r\n                \"mbed-greentea 0.2.10\",\r\n                \"colorama 0.3.7\",\r\n                \"mock 1.3.0\",\r\n                \"lockfile 0.12.2\",\r\n                \"junit-xml 1.6\",\r\n                \"mbed-ls 0.2.6\",\r\n                \"mbed-host-tests 0.2.6\",\r\n                \"pyserial 3.0.1\",\r\n                \"prettytable 0.7.2\",\r\n                \"six 1.10.0\",\r\n                \"funcsigs 0.4\",\r\n                \"pbr 1.8.1\",\r\n                \"six 1.10.0\"\r\n            ]\r\n        }\r\n    },\r\n    \"os\": {\r\n        \"uname\": [\r\n            \"Windows\",\r\n            \"username\",\r\n            \"7\",\r\n            \"6.1.7601\",\r\n            \"AMD64\",\r\n            \"Intel64 Family 6 Model 58 Stepping 9, GenuineIntel\"\r\n        ],\r\n        \"details\": {\r\n            \"os_win\": [\r\n                \"7\",\r\n                \"6.1.7601\",\r\n                \"SP1\",\r\n                \"Multiprocessor Free\"\r\n            ]\r\n        },\r\n        \"os_info\": [\r\n            \"nt\",\r\n            \"Windows\",\r\n            \"7\",\r\n            \"6.1.7601\",\r\n            \"win32\"\r\n        ]\r\n    }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/ARMmbed/greentea/issues/comments/217112586","html_url":"https://github.com/ARMmbed/greentea/pull/116#issuecomment-217112586","issue_url":"https://api.github.com/repos/ARMmbed/greentea/issues/116","id":217112586,"user":{"login":"PrzemekWirkus","id":6360720,"avatar_url":"https://avatars.githubusercontent.com/u/6360720?v=3","gravatar_id":"","url":"https://api.github.com/users/PrzemekWirkus","html_url":"https://github.com/PrzemekWirkus","followers_url":"https://api.github.com/users/PrzemekWirkus/followers","following_url":"https://api.github.com/users/PrzemekWirkus/following{/other_user}","gists_url":"https://api.github.com/users/PrzemekWirkus/gists{/gist_id}","starred_url":"https://api.github.com/users/PrzemekWirkus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrzemekWirkus/subscriptions","organizations_url":"https://api.github.com/users/PrzemekWirkus/orgs","repos_url":"https://api.github.com/users/PrzemekWirkus/repos","events_url":"https://api.github.com/users/PrzemekWirkus/events{/privacy}","received_events_url":"https://api.github.com/users/PrzemekWirkus/received_events","type":"User","site_admin":false},"created_at":"2016-05-05T09:34:01Z","updated_at":"2016-05-05T09:34:01Z","body":"@jupe I've added few modifications, please have a look!\r\n```\r\n$ mbedgt --info\r\n{\r\n    \"python\": {\r\n        \"version\": \"2.7.11\"\r\n    },\r\n    \"dependencies\": {\r\n        \"packages\": {\r\n            \"mbed-ls\": \"0.2.6\",\r\n            \"pyserial\": \"3.0.1\",\r\n            \"mbed-host-tests\": \"0.2.6\",\r\n            \"mbed-greentea\": \"0.2.10\"\r\n        },\r\n        \"details\": {\r\n            \"mbed-ls\": [\r\n                \"mbed-ls 0.2.6\",\r\n                \"prettytable 0.7.2\"\r\n            ],\r\n            \"pyserial\": [\r\n                \"pyserial 3.0.1\"\r\n            ],\r\n            \"mbed-host-tests\": [\r\n                \"mbed-host-tests 0.2.6\",\r\n                \"prettytable 0.7.2\",\r\n                \"pyserial 3.0.1\"\r\n            ],\r\n            \"mbed-greentea\": [\r\n                \"mbed-greentea 0.2.10\",\r\n                \"colorama 0.3.7\",\r\n                \"mock 1.3.0\",\r\n                \"lockfile 0.12.2\",\r\n                \"junit-xml 1.6\",\r\n                \"mbed-ls 0.2.6\",\r\n                \"mbed-host-tests 0.2.6\",\r\n                \"pyserial 3.0.1\",\r\n                \"prettytable 0.7.2\",\r\n                \"six 1.10.0\",\r\n                \"funcsigs 0.4\",\r\n                \"pbr 1.8.1\",\r\n                \"six 1.10.0\"\r\n            ]\r\n        }\r\n    },\r\n    \"os\": {\r\n        \"details\": {\r\n            \"os_mac\": [\r\n                \"\",\r\n                [\r\n                    \"\",\r\n                    \"\",\r\n                    \"\"\r\n                ],\r\n                \"\"\r\n            ],\r\n            \"os_win\": [\r\n                \"7\",\r\n                \"6.1.7601\",\r\n                \"SP1\",\r\n                \"Multiprocessor Free\"\r\n            ],\r\n            \"os_linux\": [\r\n                \"\",\r\n                \"\",\r\n                \"\"\r\n            ]\r\n        },\r\n        \"os_info\": [\r\n            \"nt\",\r\n            \"Windows\",\r\n            \"7\",\r\n            \"6.1.7601\",\r\n            \"win32\"\r\n        ]\r\n    }\r\n}\r\n```"}}