{"action":"created","comment":{"url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/pulls/comments/34810430","id":34810430,"diff_hunk":"@@ -0,0 +1,23 @@\n+use base \"console_yasttest\";\n+use testapi;\n+\n+sub run() {\n+    my $self    = shift;\n+\n+    become_root();\n+    type_string \"PS1=\\\"# \\\"\\n\";\n+\n+    script_run(\"rm -f /root/autoinst.xml; zypper -n in autoyast2 ; yast2 clone_system ; echo CLONED >/dev/$serialdev\\n\");","path":"tests/console/yast2_clone_system.pm","position":10,"original_position":10,"commit_id":"a7adc549cd54fc9f330f2c53227c55c64a91fafb","original_commit_id":"a7adc549cd54fc9f330f2c53227c55c64a91fafb","user":{"login":"aaannz","id":1260795,"avatar_url":"https://avatars.githubusercontent.com/u/1260795?v=3","gravatar_id":"","url":"https://api.github.com/users/aaannz","html_url":"https://github.com/aaannz","followers_url":"https://api.github.com/users/aaannz/followers","following_url":"https://api.github.com/users/aaannz/following{/other_user}","gists_url":"https://api.github.com/users/aaannz/gists{/gist_id}","starred_url":"https://api.github.com/users/aaannz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaannz/subscriptions","organizations_url":"https://api.github.com/users/aaannz/orgs","repos_url":"https://api.github.com/users/aaannz/repos","events_url":"https://api.github.com/users/aaannz/events{/privacy}","received_events_url":"https://api.github.com/users/aaannz/received_events","type":"User","site_admin":false},"body":"This doesn't ensure cloning was successful. What about using assert_script_run?","created_at":"2015-07-16T16:52:47Z","updated_at":"2015-07-16T16:52:47Z","html_url":"https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/577#discussion_r34810430","pull_request_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/pulls/577","_links":{"self":{"href":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/pulls/comments/34810430"},"html":{"href":"https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/577#discussion_r34810430"},"pull_request":{"href":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/pulls/577"}}},"pull_request":{"url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/pulls/577","id":40145894,"html_url":"https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/577","diff_url":"https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/577.diff","patch_url":"https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/577.patch","issue_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/issues/577","number":577,"state":"open","locked":false,"title":"clone system and use the autoyast file in chained tests","user":{"login":"nadvornik","id":5682028,"avatar_url":"https://avatars.githubusercontent.com/u/5682028?v=3","gravatar_id":"","url":"https://api.github.com/users/nadvornik","html_url":"https://github.com/nadvornik","followers_url":"https://api.github.com/users/nadvornik/followers","following_url":"https://api.github.com/users/nadvornik/following{/other_user}","gists_url":"https://api.github.com/users/nadvornik/gists{/gist_id}","starred_url":"https://api.github.com/users/nadvornik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nadvornik/subscriptions","organizations_url":"https://api.github.com/users/nadvornik/orgs","repos_url":"https://api.github.com/users/nadvornik/repos","events_url":"https://api.github.com/users/nadvornik/events{/privacy}","received_events_url":"https://api.github.com/users/nadvornik/received_events","type":"User","site_admin":false},"body":"A job can clone the system and upload autoinst.xml as an asset with\r\nCLONE_SYSTEM=1\r\n\r\nThis asset can be used for installation of chained job:\r\nASSET_1=autoinst.xml\r\nAUTOYAST=ASSET_1\r\nSTART_AFTER_TEST=<the first job>\r\n","created_at":"2015-07-16T16:02:50Z","updated_at":"2015-07-16T16:52:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2e1c846025685f5244d3df2b37f714a4462350b8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/pulls/577/commits","review_comments_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/pulls/577/comments","review_comment_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/pulls/comments{/number}","comments_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/issues/577/comments","statuses_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/statuses/a7adc549cd54fc9f330f2c53227c55c64a91fafb","head":{"label":"nadvornik:chained_autoyast","ref":"chained_autoyast","sha":"a7adc549cd54fc9f330f2c53227c55c64a91fafb","user":{"login":"nadvornik","id":5682028,"avatar_url":"https://avatars.githubusercontent.com/u/5682028?v=3","gravatar_id":"","url":"https://api.github.com/users/nadvornik","html_url":"https://github.com/nadvornik","followers_url":"https://api.github.com/users/nadvornik/followers","following_url":"https://api.github.com/users/nadvornik/following{/other_user}","gists_url":"https://api.github.com/users/nadvornik/gists{/gist_id}","starred_url":"https://api.github.com/users/nadvornik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nadvornik/subscriptions","organizations_url":"https://api.github.com/users/nadvornik/orgs","repos_url":"https://api.github.com/users/nadvornik/repos","events_url":"https://api.github.com/users/nadvornik/events{/privacy}","received_events_url":"https://api.github.com/users/nadvornik/received_events","type":"User","site_admin":false},"repo":{"id":35549694,"name":"os-autoinst-distri-opensuse","full_name":"nadvornik/os-autoinst-distri-opensuse","owner":{"login":"nadvornik","id":5682028,"avatar_url":"https://avatars.githubusercontent.com/u/5682028?v=3","gravatar_id":"","url":"https://api.github.com/users/nadvornik","html_url":"https://github.com/nadvornik","followers_url":"https://api.github.com/users/nadvornik/followers","following_url":"https://api.github.com/users/nadvornik/following{/other_user}","gists_url":"https://api.github.com/users/nadvornik/gists{/gist_id}","starred_url":"https://api.github.com/users/nadvornik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nadvornik/subscriptions","organizations_url":"https://api.github.com/users/nadvornik/orgs","repos_url":"https://api.github.com/users/nadvornik/repos","events_url":"https://api.github.com/users/nadvornik/events{/privacy}","received_events_url":"https://api.github.com/users/nadvornik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nadvornik/os-autoinst-distri-opensuse","description":"os-autoinst test cases for openSUSE","fork":true,"url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse","forks_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/forks","keys_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/teams","hooks_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/hooks","issue_events_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/issues/events{/number}","events_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/events","assignees_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/assignees{/user}","branches_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/branches{/branch}","tags_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/tags","blobs_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/git/refs{/sha}","trees_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/statuses/{sha}","languages_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/languages","stargazers_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/stargazers","contributors_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/contributors","subscribers_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/subscribers","subscription_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/subscription","commits_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/commits{/sha}","git_commits_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/git/commits{/sha}","comments_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/comments{/number}","issue_comment_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/issues/comments{/number}","contents_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/contents/{+path}","compare_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/merges","archive_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/downloads","issues_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/issues{/number}","pulls_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/pulls{/number}","milestones_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/milestones{/number}","notifications_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/labels{/name}","releases_url":"https://api.github.com/repos/nadvornik/os-autoinst-distri-opensuse/releases{/id}","created_at":"2015-05-13T13:10:53Z","updated_at":"2015-05-13T13:10:54Z","pushed_at":"2015-07-16T15:29:57Z","git_url":"git://github.com/nadvornik/os-autoinst-distri-opensuse.git","ssh_url":"git@github.com:nadvornik/os-autoinst-distri-opensuse.git","clone_url":"https://github.com/nadvornik/os-autoinst-distri-opensuse.git","svn_url":"https://github.com/nadvornik/os-autoinst-distri-opensuse","homepage":null,"size":2139,"stargazers_count":0,"watchers_count":0,"language":"Perl","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"os-autoinst:master","ref":"master","sha":"57e12748cfcc7b64d81d6142485d9973d2c520da","user":{"login":"os-autoinst","id":6918706,"avatar_url":"https://avatars.githubusercontent.com/u/6918706?v=3","gravatar_id":"","url":"https://api.github.com/users/os-autoinst","html_url":"https://github.com/os-autoinst","followers_url":"https://api.github.com/users/os-autoinst/followers","following_url":"https://api.github.com/users/os-autoinst/following{/other_user}","gists_url":"https://api.github.com/users/os-autoinst/gists{/gist_id}","starred_url":"https://api.github.com/users/os-autoinst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/os-autoinst/subscriptions","organizations_url":"https://api.github.com/users/os-autoinst/orgs","repos_url":"https://api.github.com/users/os-autoinst/repos","events_url":"https://api.github.com/users/os-autoinst/events{/privacy}","received_events_url":"https://api.github.com/users/os-autoinst/received_events","type":"Organization","site_admin":false},"repo":{"id":17630288,"name":"os-autoinst-distri-opensuse","full_name":"os-autoinst/os-autoinst-distri-opensuse","owner":{"login":"os-autoinst","id":6918706,"avatar_url":"https://avatars.githubusercontent.com/u/6918706?v=3","gravatar_id":"","url":"https://api.github.com/users/os-autoinst","html_url":"https://github.com/os-autoinst","followers_url":"https://api.github.com/users/os-autoinst/followers","following_url":"https://api.github.com/users/os-autoinst/following{/other_user}","gists_url":"https://api.github.com/users/os-autoinst/gists{/gist_id}","starred_url":"https://api.github.com/users/os-autoinst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/os-autoinst/subscriptions","organizations_url":"https://api.github.com/users/os-autoinst/orgs","repos_url":"https://api.github.com/users/os-autoinst/repos","events_url":"https://api.github.com/users/os-autoinst/events{/privacy}","received_events_url":"https://api.github.com/users/os-autoinst/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/os-autoinst/os-autoinst-distri-opensuse","description":"os-autoinst test cases for openSUSE","fork":false,"url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse","forks_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/forks","keys_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/teams","hooks_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/hooks","issue_events_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/issues/events{/number}","events_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/events","assignees_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/assignees{/user}","branches_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/branches{/branch}","tags_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/tags","blobs_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/git/refs{/sha}","trees_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/statuses/{sha}","languages_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/languages","stargazers_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/stargazers","contributors_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/contributors","subscribers_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/subscribers","subscription_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/subscription","commits_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/commits{/sha}","git_commits_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/git/commits{/sha}","comments_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/comments{/number}","issue_comment_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/issues/comments{/number}","contents_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/contents/{+path}","compare_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/merges","archive_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/downloads","issues_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/issues{/number}","pulls_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/pulls{/number}","milestones_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/milestones{/number}","notifications_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/labels{/name}","releases_url":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/releases{/id}","created_at":"2014-03-11T12:54:42Z","updated_at":"2015-05-08T14:52:21Z","pushed_at":"2015-07-16T16:05:09Z","git_url":"git://github.com/os-autoinst/os-autoinst-distri-opensuse.git","ssh_url":"git@github.com:os-autoinst/os-autoinst-distri-opensuse.git","clone_url":"https://github.com/os-autoinst/os-autoinst-distri-opensuse.git","svn_url":"https://github.com/os-autoinst/os-autoinst-distri-opensuse","homepage":null,"size":5455,"stargazers_count":3,"watchers_count":3,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":13,"forks":29,"open_issues":13,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/pulls/577"},"html":{"href":"https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/577"},"issue":{"href":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/issues/577"},"comments":{"href":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/issues/577/comments"},"review_comments":{"href":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/pulls/577/comments"},"review_comment":{"href":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/pulls/577/commits"},"statuses":{"href":"https://api.github.com/repos/os-autoinst/os-autoinst-distri-opensuse/statuses/a7adc549cd54fc9f330f2c53227c55c64a91fafb"}}}}