Nicklas Ansman
01/14/2025, 3:46 PMEric Haag
01/14/2025, 4:27 PMNicklas Ansman
01/14/2025, 7:24 PMEric Haag
01/14/2025, 7:45 PMProperty<String> or DirectoryProperty or whatever you want. I would create a CommandLineArgumentProvider and pass it in to the test task as a system property like is demonstrated here. I would annotate the property with @Internal so it doesn't affect cacheability.Nicklas Ansman
01/14/2025, 8:17 PMNicklas Ansman
01/14/2025, 8:17 PMEric Haag
01/14/2025, 8:20 PMSystem.getProperty for example. If you are the one creating the file, which is what I thought you were implying from your original message, then you would need to update the code to read the value from the system property. If a library you are using is creating a file then I'm not sure it will work.Eric Haag
01/14/2025, 8:21 PMNicklas Ansman
01/14/2025, 8:22 PMdoFirst for the test task they have this:
systemProperties["paparazzi.build.dir"] = project.layout.buildDirectory.get().toString()
Then that is used to dump the output as well as printing a path to said output to the terminalEric Haag
01/14/2025, 8:25 PMdoFirst should still be running on the host, so project.layout.buildDirectory.get().toString() should evaluate to the build directory of the local machine and not the agent already. Are you sure that is actually doing anything?Nicklas Ansman
01/14/2025, 8:26 PMNicklas Ansman
01/14/2025, 8:27 PMEric Haag
01/14/2025, 8:30 PMNicklas Ansman
01/14/2025, 8:30 PMNicklas Ansman
01/14/2025, 8:30 PMEric Haag
01/14/2025, 8:31 PMNicklas Ansman
01/14/2025, 8:32 PMNicklas Ansman
01/14/2025, 8:32 PMNicklas Ansman
01/14/2025, 8:32 PMSee file:///tmp/test-distribution712665665506011951/rootDir/path/to/module/build/paparazzi/failures/delta-test.png for details.Nicklas Ansman
01/14/2025, 8:32 PMSee file:///Users/nicklas/path/to/repo/path/to/module/build/paparazzi/failures/delta-test.png for details.Eric Haag
01/14/2025, 8:37 PMpaparazzi.build.dir system property?Nicklas Ansman
01/14/2025, 8:41 PMNicklas Ansman
01/14/2025, 8:42 PMEric Haag
01/14/2025, 9:00 PMproject.layout.buildDirectory.get().toString() evaluate to a relative path?Nicklas Ansman
01/16/2025, 12:53 AMFile(buildDir).resolve(“image.png”)