forked from influxdata/kapacitor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixed filesystem paths manipulation to be platform independent
- Fixed platform depend parts
- Loading branch information
1 parent
903fe1d
commit a9caa4d
Showing
4 changed files
with
45 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// +build !windows | ||
|
||
//Platform dependent constants for non-windows | ||
package server_test | ||
|
||
const ( | ||
ExecutableSuffix = "" | ||
PythonExecutable = "python2" | ||
LogFileExpectedMode = 0604 | ||
AlertLogPath = `/var/log/alert.log` | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// +build windows | ||
|
||
//Platform dependent constants for tests on windows | ||
package server_test | ||
|
||
const ( | ||
ExecutableSuffix = ".exe" | ||
PythonExecutable = "python" | ||
LogFileExpectedMode = 0666 | ||
AlertLogPath = `c:\alert.log` | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters