Skip to content

Commit e354064

Browse files
committed
Keep my home dir out of test fixtures
1 parent aec8ece commit e354064

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

scripts/generate-test-test.js

+3
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ function generate (file, bail, buffer) {
5454
output = output.split(file).join('___/.*/~~~' + path.basename(file))
5555
output = output.split(f).join('___/.*/~~~' + path.basename(f))
5656

57+
var dir = path.dirname(file)
58+
output = output.split(dir).join('___/.*/~~~' + path.basename(dir))
59+
5760
output = output.split(node + ' ___/').join('\0N1\0')
5861
output = output.split(path.basename(node) + ' ___/').join('\0N1\0')
5962

test/test/bail-fail-spawn--bail--buffer.tap

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ TAP version 13
22
not ok 1 - bail fail {
33
not ok 1 - ./test/test/nesting.js
44
---
5-
{"arguments":["/Users/isaacs/dev/js/tap/test/test/nesting.js"],"command":"___/.*(node|iojs)(.exe)?/~~~"}
5+
{"arguments":["___/.*/~~~test/nesting.js"],"command":"___/.*(node|iojs)(.exe)?/~~~"}
66
...
77
{
88
not ok 1 - nesting {

test/test/bail-fail-spawn--buffer.tap

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ TAP version 13
22
not ok 1 - bail fail {
33
not ok 1 - ./test/test/nesting.js
44
---
5-
{"arguments":["/Users/isaacs/dev/js/tap/test/test/nesting.js"],"command":"___/.*(node|iojs)(.exe)?/~~~"}
5+
{"arguments":["___/.*/~~~test/nesting.js"],"command":"___/.*(node|iojs)(.exe)?/~~~"}
66
...
77
{
88
not ok 1 - nesting {

0 commit comments

Comments
 (0)