diff options
| author | Jack Nagel | 2014-03-17 11:12:54 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-03-17 11:12:54 -0500 |
| commit | e4c1858ce014b5cb8c0ab6dc752b26211926fd84 (patch) | |
| tree | 42ec339996f30eace209b7d221968745ac78c599 /Library/Formula | |
| parent | d87ec16871e5ae947f6b355c2f587c538c03cb04 (diff) | |
| download | homebrew-e4c1858ce014b5cb8c0ab6dc752b26211926fd84.tar.bz2 | |
cvs: clean up test
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/cvs.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Library/Formula/cvs.rb b/Library/Formula/cvs.rb index 3f7685b8a..116c5b790 100644 --- a/Library/Formula/cvs.rb +++ b/Library/Formula/cvs.rb @@ -50,15 +50,13 @@ class Cvs < Formula end test do - system "mkdir", "cvsroot" - - cvsroot = %x[echo ${PWD}/cvsroot].chomp - + cvsroot = testpath/"cvsroot" + cvsroot.mkpath system "#{bin}/cvs", "-d", cvsroot, "init" mkdir "cvsexample" do - ENV['CVSROOT'] = "#{cvsroot}" - system "#{bin}/cvs", "import", "-m ", "'dir structure'", "cvsexample", "homebrew", "start" + ENV["CVSROOT"] = cvsroot + system "#{bin}/cvs", "import", "-m", "dir structure", "cvsexample", "homebrew", "start" end end end |
