Skip to content
Discussion options

You must be logged in to vote

For a formula test, I would keep all FreeCAD user/config writes inside testpath.

Homebrew's Formula#run_test creates a temporary test directory, sets HOME to that directory, applies the sandbox env, and then runs the formula's test do block. So a test that still tries to create /Users/runner/Library/Application Support/FreeCAD/... is escaping the intended test home/config location.

Since FreeCADCmd already supports -u and -s, the next thing I would try is also redirecting any platform config/cache variables FreeCAD respects to testpath, for example an app-home/user-data variable if FreeCAD has one, or XDG_CONFIG_HOME/XDG_CACHE_HOME on platforms where it uses those. I would avoid a "launch…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by p-linnane
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants