payload: {"action":"opened","number":78,"pull_request":{"url":"https://api.github.com/repos/Linaro/test-definitions/pulls/78","id":287330701,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjg3MzMwNzAx","html_url":"https://github.com/Linaro/test-definitions/pull/78","diff_url":"https://github.com/Linaro/test-definitions/pull/78.diff","patch_url":"https://github.com/Linaro/test-definitions/pull/78.patch","issue_url":"https://api.github.com/repos/Linaro/test-definitions/issues/78","number":78,"state":"open","locked":false,"title":"ltp: check unprivileged_userns_clone existence first","user":{"login":"shawnguo2","id":17241925,"node_id":"MDQ6VXNlcjE3MjQxOTI1","avatar_url":"https://avatars3.githubusercontent.com/u/17241925?v=4","gravatar_id":"","url":"https://api.github.com/users/shawnguo2","html_url":"https://github.com/shawnguo2","followers_url":"https://api.github.com/users/shawnguo2/followers","following_url":"https://api.github.com/users/shawnguo2/following{/other_user}","gists_url":"https://api.github.com/users/shawnguo2/gists{/gist_id}","starred_url":"https://api.github.com/users/shawnguo2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawnguo2/subscriptions","organizations_url":"https://api.github.com/users/shawnguo2/orgs","repos_url":"https://api.github.com/users/shawnguo2/repos","events_url":"https://api.github.com/users/shawnguo2/events{/privacy}","received_events_url":"https://api.github.com/users/shawnguo2/received_events","type":"User","site_admin":false},"body":"The unprivileged_userns_clone procfs entry exists only with distro\r\nkernel with particular patch applied, e.g. the patch [1] with debian\r\nkernel.  On development boards which mostly run upstream kernel without\r\nsuch patch, the ltp script will give following message which looks like\r\nsomething goes wrong.\r\n\r\n++ sysctl -n kernel.unprivileged_userns_clone\r\nsysctl: cannot stat /proc/sys/kernel/unprivileged_userns_clone: No such file or directory\r\n+ '[' '' -eq 0 ']'\r\n./ltp.sh: line 157: [: : integer expression expected\r\n\r\nLet's check unprivileged_userns_clone existence first before accessing\r\nit, so that we can avoid above \"error\" messages and the confusion caused\r\nby it.\r\n\r\n[1] https://salsa.debian.org/kernel-team/linux/blob/master/debian/patches/debian/add-sysctl-to-disallow-unprivileged-CLONE_NEWUSER-by-default.patch\r\n\r\nSigned-off-by: Shawn Guo <shawn.guo@linaro.org>","created_at":"2019-06-12T03:06:39Z","updated_at":"2019-06-12T03:06:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[{"login":"mwasilew","id":618901,"node_id":"MDQ6VXNlcjYxODkwMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/618901?v=4","gravatar_id":"","url":"https://api.github.com/users/mwasilew","html_url":"https://github.com/mwasilew","followers_url":"https://api.github.com/users/mwasilew/followers","following_url":"https://api.github.com/users/mwasilew/following{/other_user}","gists_url":"https://api.github.com/users/mwasilew/gists{/gist_id}","starred_url":"https://api.github.com/users/mwasilew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwasilew/subscriptions","organizations_url":"https://api.github.com/users/mwasilew/orgs","repos_url":"https://api.github.com/users/mwasilew/repos","events_url":"https://api.github.com/users/mwasilew/events{/privacy}","received_events_url":"https://api.github.com/users/mwasilew/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Linaro/test-definitions/pulls/78/commits","review_comments_url":"https://api.github.com/repos/Linaro/test-definitions/pulls/78/comments","review_comment_url":"https://api.github.com/repos/Linaro/test-definitions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Linaro/test-definitions/issues/78/comments","statuses_url":"https://api.github.com/repos/Linaro/test-definitions/statuses/aee36b6bcdb40bb54e6917c281db54cdbb1a1eb7","head":{"label":"shawnguo2:ltp-userns","ref":"ltp-userns","sha":"aee36b6bcdb40bb54e6917c281db54cdbb1a1eb7","user":{"login":"shawnguo2","id":17241925,"node_id":"MDQ6VXNlcjE3MjQxOTI1","avatar_url":"https://avatars3.githubusercontent.com/u/17241925?v=4","gravatar_id":"","url":"https://api.github.com/users/shawnguo2","html_url":"https://github.com/shawnguo2","followers_url":"https://api.github.com/users/shawnguo2/followers","following_url":"https://api.github.com/users/shawnguo2/following{/other_user}","gists_url":"https://api.github.com/users/shawnguo2/gists{/gist_id}","starred_url":"https://api.github.com/users/shawnguo2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawnguo2/subscriptions","organizations_url":"https://api.github.com/users/shawnguo2/orgs","repos_url":"https://api.github.com/users/shawnguo2/repos","events_url":"https://api.github.com/users/shawnguo2/events{/privacy}","received_events_url":"https://api.github.com/users/shawnguo2/received_events","type":"User","site_admin":false},"repo":{"id":191325272,"node_id":"MDEwOlJlcG9zaXRvcnkxOTEzMjUyNzI=","name":"test-definitions","full_name":"shawnguo2/test-definitions","private":false,"owner":{"login":"shawnguo2","id":17241925,"node_id":"MDQ6VXNlcjE3MjQxOTI1","avatar_url":"https://avatars3.githubusercontent.com/u/17241925?v=4","gravatar_id":"","url":"https://api.github.com/users/shawnguo2","html_url":"https://github.com/shawnguo2","followers_url":"https://api.github.com/users/shawnguo2/followers","following_url":"https://api.github.com/users/shawnguo2/following{/other_user}","gists_url":"https://api.github.com/users/shawnguo2/gists{/gist_id}","starred_url":"https://api.github.com/users/shawnguo2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shawnguo2/subscriptions","organizations_url":"https://api.github.com/users/shawnguo2/orgs","repos_url":"https://api.github.com/users/shawnguo2/repos","events_url":"https://api.github.com/users/shawnguo2/events{/privacy}","received_events_url":"https://api.github.com/users/shawnguo2/received_events","type":"User","site_admin":false},"html_url":"https://github.com/shawnguo2/test-definitions","description":"Test definitions work with and without LAVA","fork":true,"url":"https://api.github.com/repos/shawnguo2/test-definitions","forks_url":"https://api.github.com/repos/shawnguo2/test-definitions/forks","keys_url":"https://api.github.com/repos/shawnguo2/test-definitions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shawnguo2/test-definitions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shawnguo2/test-definitions/teams","hooks_url":"https://api.github.com/repos/shawnguo2/test-definitions/hooks","issue_events_url":"https://api.github.com/repos/shawnguo2/test-definitions/issues/events{/number}","events_url":"https://api.github.com/repos/shawnguo2/test-definitions/events","assignees_url":"https://api.github.com/repos/shawnguo2/test-definitions/assignees{/user}","branches_url":"https://api.github.com/repos/shawnguo2/test-definitions/branches{/branch}","tags_url":"https://api.github.com/repos/shawnguo2/test-definitions/tags","blobs_url":"https://api.github.com/repos/shawnguo2/test-definitions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shawnguo2/test-definitions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shawnguo2/test-definitions/git/refs{/sha}","trees_url":"https://api.github.com/repos/shawnguo2/test-definitions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shawnguo2/test-definitions/statuses/{sha}","languages_url":"https://api.github.com/repos/shawnguo2/test-definitions/languages","stargazers_url":"https://api.github.com/repos/shawnguo2/test-definitions/stargazers","contributors_url":"https://api.github.com/repos/shawnguo2/test-definitions/contributors","subscribers_url":"https://api.github.com/repos/shawnguo2/test-definitions/subscribers","subscription_url":"https://api.github.com/repos/shawnguo2/test-definitions/subscription","commits_url":"https://api.github.com/repos/shawnguo2/test-definitions/commits{/sha}","git_commits_url":"https://api.github.com/repos/shawnguo2/test-definitions/git/commits{/sha}","comments_url":"https://api.github.com/repos/shawnguo2/test-definitions/comments{/number}","issue_comment_url":"https://api.github.com/repos/shawnguo2/test-definitions/issues/comments{/number}","contents_url":"https://api.github.com/repos/shawnguo2/test-definitions/contents/{+path}","compare_url":"https://api.github.com/repos/shawnguo2/test-definitions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shawnguo2/test-definitions/merges","archive_url":"https://api.github.com/repos/shawnguo2/test-definitions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shawnguo2/test-definitions/downloads","issues_url":"https://api.github.com/repos/shawnguo2/test-definitions/issues{/number}","pulls_url":"https://api.github.com/repos/shawnguo2/test-definitions/pulls{/number}","milestones_url":"https://api.github.com/repos/shawnguo2/test-definitions/milestones{/number}","notifications_url":"https://api.github.com/repos/shawnguo2/test-definitions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shawnguo2/test-definitions/labels{/name}","releases_url":"https://api.github.com/repos/shawnguo2/test-definitions/releases{/id}","deployments_url":"https://api.github.com/repos/shawnguo2/test-definitions/deployments","created_at":"2019-06-11T08:14:28Z","updated_at":"2019-06-11T08:44:39Z","pushed_at":"2019-06-12T03:05:41Z","git_url":"git://github.com/shawnguo2/test-definitions.git","ssh_url":"git@github.com:shawnguo2/test-definitions.git","clone_url":"https://github.com/shawnguo2/test-definitions.git","svn_url":"https://github.com/shawnguo2/test-definitions","homepage":"","size":17456,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Linaro:master","ref":"master","sha":"00c284b52d6e8c9f86805aa06a6697a4b0bfa652","user":{"login":"Linaro","id":1180626,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExODA2MjY=","avatar_url":"https://avatars0.githubusercontent.com/u/1180626?v=4","gravatar_id":"","url":"https://api.github.com/users/Linaro","html_url":"https://github.com/Linaro","followers_url":"https://api.github.com/users/Linaro/followers","following_url":"https://api.github.com/users/Linaro/following{/other_user}","gists_url":"https://api.github.com/users/Linaro/gists{/gist_id}","starred_url":"https://api.github.com/users/Linaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Linaro/subscriptions","organizations_url":"https://api.github.com/users/Linaro/orgs","repos_url":"https://api.github.com/users/Linaro/repos","events_url":"https://api.github.com/users/Linaro/events{/privacy}","received_events_url":"https://api.github.com/users/Linaro/received_events","type":"Organization","site_admin":false},"repo":{"id":21447843,"node_id":"MDEwOlJlcG9zaXRvcnkyMTQ0Nzg0Mw==","name":"test-definitions","full_name":"Linaro/test-definitions","private":false,"owner":{"login":"Linaro","id":1180626,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExODA2MjY=","avatar_url":"https://avatars0.githubusercontent.com/u/1180626?v=4","gravatar_id":"","url":"https://api.github.com/users/Linaro","html_url":"https://github.com/Linaro","followers_url":"https://api.github.com/users/Linaro/followers","following_url":"https://api.github.com/users/Linaro/following{/other_user}","gists_url":"https://api.github.com/users/Linaro/gists{/gist_id}","starred_url":"https://api.github.com/users/Linaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Linaro/subscriptions","organizations_url":"https://api.github.com/users/Linaro/orgs","repos_url":"https://api.github.com/users/Linaro/repos","events_url":"https://api.github.com/users/Linaro/events{/privacy}","received_events_url":"https://api.github.com/users/Linaro/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Linaro/test-definitions","description":"Test definitions work with and without LAVA","fork":false,"url":"https://api.github.com/repos/Linaro/test-definitions","forks_url":"https://api.github.com/repos/Linaro/test-definitions/forks","keys_url":"https://api.github.com/repos/Linaro/test-definitions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Linaro/test-definitions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Linaro/test-definitions/teams","hooks_url":"https://api.github.com/repos/Linaro/test-definitions/hooks","issue_events_url":"https://api.github.com/repos/Linaro/test-definitions/issues/events{/number}","events_url":"https://api.github.com/repos/Linaro/test-definitions/events","assignees_url":"https://api.github.com/repos/Linaro/test-definitions/assignees{/user}","branches_url":"https://api.github.com/repos/Linaro/test-definitions/branches{/branch}","tags_url":"https://api.github.com/repos/Linaro/test-definitions/tags","blobs_url":"https://api.github.com/repos/Linaro/test-definitions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Linaro/test-definitions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Linaro/test-definitions/git/refs{/sha}","trees_url":"https://api.github.com/repos/Linaro/test-definitions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Linaro/test-definitions/statuses/{sha}","languages_url":"https://api.github.com/repos/Linaro/test-definitions/languages","stargazers_url":"https://api.github.com/repos/Linaro/test-definitions/stargazers","contributors_url":"https://api.github.com/repos/Linaro/test-definitions/contributors","subscribers_url":"https://api.github.com/repos/Linaro/test-definitions/subscribers","subscription_url":"https://api.github.com/repos/Linaro/test-definitions/subscription","commits_url":"https://api.github.com/repos/Linaro/test-definitions/commits{/sha}","git_commits_url":"https://api.github.com/repos/Linaro/test-definitions/git/commits{/sha}","comments_url":"https://api.github.com/repos/Linaro/test-definitions/comments{/number}","issue_comment_url":"https://api.github.com/repos/Linaro/test-definitions/issues/comments{/number}","contents_url":"https://api.github.com/repos/Linaro/test-definitions/contents/{+path}","compare_url":"https://api.github.com/repos/Linaro/test-definitions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Linaro/test-definitions/merges","archive_url":"https://api.github.com/repos/Linaro/test-definitions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Linaro/test-definitions/downloads","issues_url":"https://api.github.com/repos/Linaro/test-definitions/issues{/number}","pulls_url":"https://api.github.com/repos/Linaro/test-definitions/pulls{/number}","milestones_url":"https://api.github.com/repos/Linaro/test-definitions/milestones{/number}","notifications_url":"https://api.github.com/repos/Linaro/test-definitions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Linaro/test-definitions/labels{/name}","releases_url":"https://api.github.com/repos/Linaro/test-definitions/releases{/id}","deployments_url":"https://api.github.com/repos/Linaro/test-definitions/deployments","created_at":"2014-07-03T02:51:06Z","updated_at":"2019-06-10T14:14:53Z","pushed_at":"2019-06-11T08:49:03Z","git_url":"git://github.com/Linaro/test-definitions.git","ssh_url":"git@github.com:Linaro/test-definitions.git","clone_url":"https://github.com/Linaro/test-definitions.git","svn_url":"https://github.com/Linaro/test-definitions","homepage":"","size":29312,"stargazers_count":9,"watchers_count":9,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":31,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":5,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":31,"open_issues":5,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Linaro/test-definitions/pulls/78"},"html":{"href":"https://github.com/Linaro/test-definitions/pull/78"},"issue":{"href":"https://api.github.com/repos/Linaro/test-definitions/issues/78"},"comments":{"href":"https://api.github.com/repos/Linaro/test-definitions/issues/78/comments"},"review_comments":{"href":"https://api.github.com/repos/Linaro/test-definitions/pulls/78/comments"},"review_comment":{"href":"https://api.github.com/repos/Linaro/test-definitions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Linaro/test-definitions/pulls/78/commits"},"statuses":{"href":"https://api.github.com/repos/Linaro/test-definitions/statuses/aee36b6bcdb40bb54e6917c281db54cdbb1a1eb7"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":3,"deletions":1,"changed_files":1}}
other: {"actor":{"display_login":"shawnguo2"}}