Commit graph

2 commits

Author SHA1 Message Date
Dan Willemsen
b53f7beb72 gotestrunner: Make GOROOT absolute before chdir
If GOROOT is a relative path (like it is in Android), then changing
directories to run the test will cause GOROOT to become invalid. So make
it absolute if we're going to change to a different directory.

This allows tests to use the go tools without searching for a valid go
installation.

Change-Id: Ifab0a8533d236054ccf363dfb68b12e0bf66f6f8
2017-01-18 14:42:09 -08:00
Dan Willemsen
c7697ce79d Add a test runner
This removes the need to use $OLDPWD when running tests, which means
that the builddir may be an absolute or relative directory. It also
filters out the "PASS" message on successful test runs to clean up our
output.

Change-Id: I4ab937c7a87b74fe997a47cc0311e2f357f9f7e9
2015-09-18 10:28:36 -07:00