]> Cypherpunks repositories - gostls13.git/commit
os: don't assume /bin/pwd in test, find it in $PATH
authorRon Minnich <rminnich@gmail.com>
Tue, 29 Aug 2017 16:59:27 +0000 (09:59 -0700)
committerDaniel Martí <mvdan@mvdan.cc>
Tue, 29 Aug 2017 20:08:16 +0000 (20:08 +0000)
commit0cf7e54f2fe033a1e596d9aaed0e728cda1fc5e7
tree64665fae739b3c0ba61738e67792a949cff6f2b9
parentae84aaee44f0d978ea6906812ee73fc2bc6297c8
os: don't assume /bin/pwd in test, find it in $PATH

There are several distros now that no longer have /bin.
Instead of assuming /bin/pwd, we will look for it in $PATH.

Fixes #21684.

Change-Id: I61478326500edeadc3c26803990550dad00c7971
Signed-off-by: Ron Minnich <rminnich@gmail.com>
Reviewed-on: https://go-review.googlesource.com/60010
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/os/os_test.go