Skip to content

Commit be946df

Browse files
committed
Merge pull request #280 from jamestalmage/pass-ava-appveyor-env-variable-in-tests
Put back AVA_APPVEYOR environment variable when running tests.
2 parents f13ba2e + 9b77096 commit be946df

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/cli.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,15 @@ function execCli(args, cb) {
99
args = [args];
1010
}
1111

12+
var env = {};
13+
14+
if (process.env.AVA_APPVEYOR) {
15+
env.AVA_APPVEYOR = 1;
16+
}
17+
1218
childProcess.execFile(process.execPath, ['../cli.js'].concat(args), {
1319
cwd: __dirname,
14-
env: {}
20+
env: env
1521
}, cb);
1622
}
1723

0 commit comments

Comments
 (0)