aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils/customflags_test.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-08-07 03:39:29 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-08-07 03:39:29 +0800
commit698e98d9814605bfea98ba3ad2fe7fda073cb2b1 (patch)
tree729aa720f3b18b9eb901111d1d58c355bc9b744c /cmd/utils/customflags_test.go
parenta3b8169938953a10ab57282853768c72bebaf0b4 (diff)
parent803096ca0f262be7d03081482777c3e293f5f7ac (diff)
downloaddexon-698e98d9814605bfea98ba3ad2fe7fda073cb2b1.tar
dexon-698e98d9814605bfea98ba3ad2fe7fda073cb2b1.tar.gz
dexon-698e98d9814605bfea98ba3ad2fe7fda073cb2b1.tar.bz2
dexon-698e98d9814605bfea98ba3ad2fe7fda073cb2b1.tar.lz
dexon-698e98d9814605bfea98ba3ad2fe7fda073cb2b1.tar.xz
dexon-698e98d9814605bfea98ba3ad2fe7fda073cb2b1.tar.zst
dexon-698e98d9814605bfea98ba3ad2fe7fda073cb2b1.zip
Merge pull request #1600 from ethereum/fix-tests-windows
Fix tests on windows
Diffstat (limited to 'cmd/utils/customflags_test.go')
-rw-r--r--cmd/utils/customflags_test.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/cmd/utils/customflags_test.go b/cmd/utils/customflags_test.go
index 0fb0af63b..de39ca36a 100644
--- a/cmd/utils/customflags_test.go
+++ b/cmd/utils/customflags_test.go
@@ -23,18 +23,15 @@ import (
)
func TestPathExpansion(t *testing.T) {
-
user, _ := user.Current()
-
tests := map[string]string{
"/home/someuser/tmp": "/home/someuser/tmp",
"~/tmp": user.HomeDir + "/tmp",
+ "~thisOtherUser/b/": "~thisOtherUser/b",
"$DDDXXX/a/b": "/tmp/a/b",
"/a/b/": "/a/b",
}
-
os.Setenv("DDDXXX", "/tmp")
-
for test, expected := range tests {
got := expandPath(test)
if got != expected {