@@ -46,7 +46,7 @@ test_once "-v $args", qr/\+ local dry_run/, 'clone-job with -v prints commands';
46
46
test_once " -n -v $ args" , qr/ \+ local dry_run/ , ' clone-job with -n -v prints commands' ;
47
47
my $ args_branch = ' https://github.com/user/repo/tree/my/branch https://openqa.opensuse.org/tests/1234 FOO=bar' ;
48
48
my $ expected_branch_re
49
- = qr{$ {clone_job}1234 _GROUP= 0 TEST\+= \@ user / repo# my/branch BUILD=user/repo#my/branch ${dirs} FOO=bar};
49
+ = qr{$ {clone_job}1234 _GROUP= 0 TEST\+= \@ user / repo\ # my/branch BUILD=user/repo\ #my/branch ${dirs} FOO=bar};
50
50
test_once $ args_branch , $ expected_branch_re , ' alternative mode with branch reference also yields right variables' ;
51
51
my $ prefix = ' env repo_name=user/repo pr=9128 host=https://openqa.opensuse.org job=1234' ;
52
52
combined_like { $ ret = run_once(' ' , $ prefix ) } $ expected_re , ' environment variables can be used instead' ;
@@ -57,7 +57,7 @@ my $expected_custom_re = qr{https://openqa.opensuse.org 1234 _GROUP=0 .*${dirs}}
57
57
combined_like { $ ret = run_once(' ' , $ prefix ) } $ expected_custom_re , ' testsuite and dirs can be overridden' ;
58
58
is $ ret , 0 , ' exits successfully' ;
59
59
my $ args_trailing = ' https://github.com/me/repo/pull/1/ https://openqa.opensuse.org/tests/1' ;
60
- test_once $ args_trailing , qr{TEST\+= \@ user / repo# my/branch.*}, 'trailing slash ignored';
60
+ test_once $ args_trailing , qr{TEST\+= \@ user / repo\ # my/branch.*}, 'trailing slash ignored';
61
61
my $ args_list = $ args . ' ,https://openqa.opensuse.org/tests/1234' ;
62
62
$ expected_re = qr/ $ {expected}.* opensuse. org 1234 / s;
63
63
test_once $ args_list , $ expected_re , ' accepts comma-separated list of jobs' ;
@@ -75,13 +75,12 @@ $expected_re = qr/TEST1=BLUB\r?\nTEST2=\$VAR\r?\nTEST3=space space\r?\nTEST4=\(!
75
75
combined_like { run_once($ args_escape , q(dry_run= ' printf "%s\n"' )) } $ expected_re ,
76
76
' Custom variables has proper bash escaping' ;
77
77
78
- TODO: {
79
- local $ TODO = ' not implemented' ;
78
+ subtest ' short urls' => sub {
80
79
$ args = ' https://github.com/user/repo/pull/9128 https://openqa.opensuse.org/t1234' ;
81
80
test_once $ args , qr/ $ {expected}/ , ' short test URLs are supported the same' ;
82
81
$ args .= ' ,https://openqa.suse.de/t1234' ;
83
82
test_once $ args , qr/ $ {expected}.* 1234 / s, ' multiple short URLs from different hosts point to individual hosts' ;
84
- }
83
+ };
85
84
86
85
my $ test_url = ' https://openqa.opensuse.org/tests/1107158' ;
87
86
$ ENV {curl_github} = qq { echo -e '{ " head" : {" label" : " user:my_branch" }, " body" : " \@openqa: Clone ${ test_url} " } '; true } ;
0 commit comments