permission errors when running brew test mytap/mytap/formula
#6926
Output of
|
Replies: 1 comment
|
For a formula test, I would keep all FreeCAD user/config writes inside Homebrew's Since |
For a formula test, I would keep all FreeCAD user/config writes inside
testpath.Homebrew's
Formula#run_testcreates a temporary test directory, setsHOMEto that directory, applies the sandbox env, and then runs the formula'stest doblock. So a test that still tries to create/Users/runner/Library/Application Support/FreeCAD/...is escaping the intended test home/config location.Since
FreeCADCmdalready supports-uand-s, the next thing I would try is also redirecting any platform config/cache variables FreeCAD respects totestpath, for example an app-home/user-data variable if FreeCAD has one, orXDG_CONFIG_HOME/XDG_CACHE_HOMEon platforms where it uses those. I would avoid a "launch…