Remove --root, require the cwd to be the root

This allows us to use relative paths everywhere.
It also produces more accurate emulation of TOPDIR,
which should be an empty string.

Bug: 213508006
Test: go test
Change-Id: Ie4e357687486e84e9f4aad0f6776d8feb2b9fc63
This commit is contained in:
Cole Faust
2022-02-02 15:38:33 -08:00
parent 8d47c48082
commit 9b6111aaed
3 changed files with 15 additions and 21 deletions

View File

@@ -1387,7 +1387,6 @@ func TestGood(t *testing.T) {
ss, err := Convert(Request{
MkFile: test.mkname,
Reader: bytes.NewBufferString(test.in),
RootDir: ".",
OutputSuffix: ".star",
SourceFS: fs,
MakefileFinder: &testMakefileFinder{fs: fs},