Make running gn format unittests from anywhere work

This "works" but has two drawbacks:
- Relies on a 2-deep output directory which is true for gyp, but not
  necessarily for gn (though I'm pretty sure other things are broken
  for that case too).
- calls SetCurrentDirectory which is kind of icky. At first I tried setting
  an absolute path for loading the .golden file which was OK, but then
  it got messy to create the //gn path.

R=dpranke@chromium.org
BUG=443813

Review URL: https://codereview.chromium.org/818623002

Cr-Original-Commit-Position: refs/heads/master@{#309277}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 7f1ee75851d2a0f19ce8fe993cd7e9e1ccfebf4e
1 file changed
tree: d6a128401cca4dd823f82671b89102574acb50e1
  1. tools/