about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-03-30 18:15:25 +0000
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-03-30 20:49:31 +0000
commitf1a3ece0df6825792f1ec0ca326998c8915fd80d (patch)
treeb4d6fbd64e8935b970813578cbd101e183ead03e /t
parent2276866c65b5cff1e4b2dfc561c0e6ba58fd7c98 (diff)
downloadpublic-inbox-f1a3ece0df6825792f1ec0ca326998c8915fd80d.tar.gz
We have Git::qx nowadays.
Diffstat (limited to 't')
-rw-r--r--t/v2writable.t8
1 files changed, 2 insertions, 6 deletions
diff --git a/t/v2writable.t b/t/v2writable.t
index 0eda432a..7abb14f6 100644
--- a/t/v2writable.t
+++ b/t/v2writable.t
@@ -43,13 +43,9 @@ if ('ensure git configs are correct') {
                 qw(core.sharedRepository 0644));
         is(system(@cmd), 0, "set sharedRepository in all.git");
         $git0 = PublicInbox::Git->new("$mainrepo/git/0.git");
-        my $fh = $git0->popen(qw(config core.sharedRepository));
-        my $v = eval { local $/; <$fh> };
-        chomp $v;
+        chomp(my $v = $git0->qx(qw(config core.sharedRepository)));
         is($v, '0644', 'child repo inherited core.sharedRepository');
-        $fh = $git0->popen(qw(config --bool repack.writeBitmaps));
-        $v = eval { local $/; <$fh> };
-        chomp $v;
+        chomp($v = $git0->qx(qw(config --bool repack.writeBitmaps)));
         is($v, 'true', 'child repo inherited repack.writeBitmaps');
 }