Skip to content

Commit

Permalink
Use USERPROFILE instead of HOME on win32.
Browse files Browse the repository at this point in the history
Fix Windows support. Remove HOME workaround from README.
  • Loading branch information
reid committed Dec 20, 2013
1 parent bf4734b commit 4924a8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
11 changes: 0 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,6 @@ Point your browsers at that URL, then come back and press Enter.

Yeti exits automatically when all tests complete. If test failures occur, Yeti will exit with a non-zero status code.

Please note before using Yeti on Windows, you must issue one of the following commands, depending on which command-line interface you are using:

MS-DOS:

set HOME = C:\Users\<username>

Windows PowerShell:

$Env:HOME = "C:\Users\<username>"


#### JUnit XML output

Yeti can output machine-readable JUnit XML suitable for use in [Jenkins][] with the `--junit` option.
Expand Down
4 changes: 3 additions & 1 deletion lib/cli/configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ proto.find = function () {
* @chainable
*/
proto.home = function () {
this.importFromDirectory(this.process.env.HOME, true);
var isWindows = process.platform === "win32",
home = isWindows ? this.process.env.USERPROFILE : this.process.env.HOME;
this.importFromDirectory(home, true);
return this;
};

Expand Down

0 comments on commit 4924a8a

Please sign in to comment.