Permalink
Browse files

Fix version-no-tags test on Windows.

Helps with #4316. Thanks @robertkowalski for the idea on how to fix.
  • Loading branch information...
1 parent 36fa1c2 commit 32cc890a132a5f1b3a5d8a246c2cb9d1fae63aa2 @domenic domenic committed Dec 14, 2013
Showing with 5 additions and 2 deletions.
  1. +5 −2 test/tap/version-no-tags.js
@@ -31,7 +31,7 @@ test("npm version <semver> without git tag", function (t) {
return _cb(null, Boolean(~out.indexOf(tag)))
})
}
-
+
var child = spawn(git, ['init'])
child.stdout.pipe(process.stdout)
child.on('exit', function() {
@@ -53,6 +53,9 @@ test("npm version <semver> without git tag", function (t) {
})
test('cleanup', function(t) {
+ // windows fix for locked files
+ process.chdir(osenv.tmpdir())
+
rimraf.sync(pkg)
t.end()
})
@@ -67,4 +70,4 @@ function setup() {
description: "Test for git-tag-version flag"
}), 'utf8')
process.chdir(pkg)
-}
+}

0 comments on commit 32cc890

Please sign in to comment.