Skip to content

Commit

Permalink
Keep my home dir out of test fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Jan 8, 2017
1 parent aec8ece commit e354064
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions scripts/generate-test-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ function generate (file, bail, buffer) {
output = output.split(file).join('___/.*/~~~' + path.basename(file))
output = output.split(f).join('___/.*/~~~' + path.basename(f))

var dir = path.dirname(file)
output = output.split(dir).join('___/.*/~~~' + path.basename(dir))

output = output.split(node + ' ___/').join('\0N1\0')
output = output.split(path.basename(node) + ' ___/').join('\0N1\0')

Expand Down
2 changes: 1 addition & 1 deletion test/test/bail-fail-spawn--bail--buffer.tap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ TAP version 13
not ok 1 - bail fail {
not ok 1 - ./test/test/nesting.js
---
{"arguments":["/Users/isaacs/dev/js/tap/test/test/nesting.js"],"command":"___/.*(node|iojs)(.exe)?/~~~"}
{"arguments":["___/.*/~~~test/nesting.js"],"command":"___/.*(node|iojs)(.exe)?/~~~"}
...
{
not ok 1 - nesting {
Expand Down
2 changes: 1 addition & 1 deletion test/test/bail-fail-spawn--buffer.tap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ TAP version 13
not ok 1 - bail fail {
not ok 1 - ./test/test/nesting.js
---
{"arguments":["/Users/isaacs/dev/js/tap/test/test/nesting.js"],"command":"___/.*(node|iojs)(.exe)?/~~~"}
{"arguments":["___/.*/~~~test/nesting.js"],"command":"___/.*(node|iojs)(.exe)?/~~~"}
...
{
not ok 1 - nesting {
Expand Down

0 comments on commit e354064

Please sign in to comment.