From 65475cf2e860e9abaffd00a6fb2a04e894ba61b1 Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Wed, 24 Sep 2014 16:17:25 +0200 Subject: [PATCH] git.t: make test more robust Different git versions use different strings to report issues and the tests don't use --porcelain. Made them a little more robust. --- t/git.t | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/t/git.t b/t/git.t index 03956060..4c719bbb 100644 --- a/t/git.t +++ b/t/git.t @@ -15,7 +15,7 @@ require 't/test.pl'; package OddMuse; -use Test::More tests => 15; +use Test::More tests => 16; use utf8; # test data is UTF-8 and it matters SKIP: { @@ -27,7 +27,7 @@ SKIP: { add_module('git.pl'); if (qx($GitBinary --version) !~ /git version/) { - skip "$GitBinary not found", 15; + skip "$GitBinary not found", 16; } GitInitVariables(); @@ -48,8 +48,7 @@ SKIP: { $GitResult = ''; GitRun(qw(status)); - test_page($GitResult, - 'nothing to commit, working directory clean'); + test_page($GitResult, 'nothing to commit', 'working directory clean'); GitRun(qw(log -- Test)); test_page($GitResult,