diff options
author | Eric Wong <e@80x24.org> | 2021-09-15 21:35:58 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-09-15 23:14:32 +0000 |
commit | 5a5d2496f139e45823dbee3361ab790b2db4d31f (patch) | |
tree | e28dcdb736807c338b0fa6c1c47209b848770aae /t/lei-mirror.t | |
parent | 5d9dcc31959d520d3e7bed3f68871245bc915ca3 (diff) | |
download | public-inbox-5a5d2496f139e45823dbee3361ab790b2db4d31f.tar.gz |
The full pathname for "curl -o ..." was too noisy and confusing. Reduce confusion by adding the ".tmp" suffix and relying on "-C". We'll also avoid displaying "-C" in run_reap() and rely on "--git-dir=" with "git fetch" to display progress for users.
Diffstat (limited to 't/lei-mirror.t')
-rw-r--r-- | t/lei-mirror.t | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/t/lei-mirror.t b/t/lei-mirror.t index 3eb7f36a..7dd03b26 100644 --- a/t/lei-mirror.t +++ b/t/lei-mirror.t @@ -116,12 +116,12 @@ SKIP: { ok(!run_script([qw(-fetch --exit-code -C), "$d/t2"], undef, $opt), '-fetch succeeds w/ manifest.js.gz'); is($? >> 8, 127, '--exit-code gave 127'); - unlike($err, qr/git fetch/, 'no fetch done w/ manifest'); + unlike($err, qr/git --git-dir=\S+ fetch/, 'no fetch done w/ manifest'); unlink("$d/t2/manifest.js.gz") or xbail "unlink $!"; ok(!run_script([qw(-fetch --exit-code -C), "$d/t2"], undef, $opt), '-fetch succeeds w/o manifest.js.gz'); is($? >> 8, 127, '--exit-code gave 127'); - like($err, qr/git fetch/, 'fetch forced w/o manifest'); + like($err, qr/git --git-dir=\S+ fetch/, 'fetch forced w/o manifest'); ok(run_script([qw(-clone -q -C), $d, "$http/t1"], undef, $opt), 'cloning v1 works'); @@ -131,14 +131,14 @@ SKIP: { ok(!run_script([qw(-fetch --exit-code -C), "$d/t1"], undef, $opt), 'fetching v1 works'); is($? >> 8, 127, '--exit-code gave 127'); - unlike($err, qr/git fetch/, 'no fetch done w/ manifest'); + unlike($err, qr/git --git-dir=\S+ fetch/, 'no fetch done w/ manifest'); unlink("$d/t1/manifest.js.gz") or xbail "unlink $!"; my $before = [ glob("$d/t1/*") ]; ok(!run_script([qw(-fetch --exit-code -C), "$d/t1"], undef, $opt), 'fetching v1 works w/o manifest.js.gz'); is($? >> 8, 127, '--exit-code gave 127'); unlink("$d/t1/FETCH_HEAD"); # git internal - like($err, qr/git fetch/, 'no fetch done w/ manifest'); + like($err, qr/git --git-dir=\S+ fetch/, 'no fetch done w/ manifest'); ok(unlink("$d/t1/manifest.js.gz"), 'manifest created'); my $after = [ glob("$d/t1/*") ]; is_deeply($before, $after, 'no new files created'); |