Below is the file 'tests/automate_get_workspace_root/__driver__.lua' from this revision. You can also download the file.


mtn_setup()

local cwd = chdir(".")

mkdir("foo")
addfile("foo/bar", "text")

check(indir("foo",mtn("automate", "get_workspace_root")), 0, true, false)
canonicalize("stdout")
check(cwd .. '\n' == readfile("stdout"))