aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>2012-01-21 20:40:20 -0500
committerAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>2012-01-22 10:44:49 -0500
commit0b7d5aeeb692089858202bac34664f15349eeb94 (patch)
tree64cc99743362eaf16778bdb722e445aab7f9da6b /t
parentd760df3821d67b97561e7868b3ce52b1a66e9b13 (diff)
downloadikiwiki-0b7d5aeeb692089858202bac34664f15349eeb94.tar
ikiwiki-0b7d5aeeb692089858202bac34664f15349eeb94.tar.gz
Use config parameters directly and shorten long lines.
Diffstat (limited to 't')
-rwxr-xr-xt/cvs.t15
1 files changed, 8 insertions, 7 deletions
diff --git a/t/cvs.t b/t/cvs.t
index af1786c65..8b5bbb568 100755
--- a/t/cvs.t
+++ b/t/cvs.t
@@ -51,13 +51,14 @@ sub _generate_minimal_config {
}
sub _create_test_repo {
- my $cvsrepo = "$dir/repo";
-
- system "cvs -d $cvsrepo init >/dev/null";
- system "mkdir $dir/ikiwiki >/dev/null";
- system "cd $dir/ikiwiki && cvs -d $cvsrepo import -m import ikiwiki VENDOR RELEASE >/dev/null";
- system "rm -rf $dir/ikiwiki >/dev/null";
- system "cvs -d $cvsrepo co -d $config{srcdir} ikiwiki >/dev/null";
+ my $cvs = "cvs -d $config{cvsrepo}";
+ my $dn = ">/dev/null";
+ system "$cvs init $dn";
+ system "mkdir $dir/$config{cvspath} $dn";
+ system "cd $dir/$config{cvspath} && "
+ . "$cvs import -m import $config{cvspath} VENDOR RELEASE $dn";
+ system "rm -rf $dir/$config{cvspath} $dn";
+ system "$cvs co -d $config{srcdir} $config{cvspath} $dn";
}
sub test_web_add_and_commit {