]> git.madduck.net Git - code/vcsh.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Fix tests
authorRichard Hartmann <richih@debian.org>
Sat, 25 Oct 2014 23:04:13 +0000 (01:04 +0200)
committerRichard Hartmann <richih@debian.org>
Sat, 25 Oct 2014 23:05:52 +0000 (01:05 +0200)
t/000-tear-env.t
t/300-add.t

index afe261a8a5ba3f10ec45a2f6b15d711743132ec9..6cb384f15bc061378cc8f78e4ec5d6caa74c2aa1 100644 (file)
@@ -9,7 +9,7 @@ use Test::Most;
 chdir 't' or die $!;
 
 if (!-d 'etc') {
-       plan skip_all => 'No need to tear previous env.';
+       plan skip_all => 'No need to tear down previous env.';
 }
 
 ok rm_rf 'etc';
index 6c8b9cdfa39ecc3493097dd49d82791b00a3dbbe..58843c8759aca865102d3af513091d9df8ea2efe 100644 (file)
@@ -12,21 +12,24 @@ chdir 't/etc/' or die $!;
 
 $ENV{'HOME'} = abs_path ('.vcsh_home');
 
+chdir '.vcsh_home' or die $!;
+
 eval {
        touch 'a';
 };
 
 die $@ if $@;
 
-system ("./vcsh test1 add 'a'");
+system (".././vcsh test1 add 'a'");
 
-my $output = `./vcsh status`;
+my $output = `.././vcsh status`;
 
 diag $output;
 
 ok $output eq "test1:
-A a
-", 'Adding a file worksl';
+A  a
+
+", 'Adding a file works';
 
 done_testing;