You probably need to find out what links /var/tmp to /tmp in ptest
images, and see if it can be reconfigured to do the same thing as the
image where the tests passed.
Alex
On Wed, 15 Mar 2023 at 16:07, Markus Volk <
f_l_k@t-online.de> wrote:
Am Mi, 15. Mär 2023 um 08:27:33 +0100 schrieb Alexander Kanavin <alex.kanavin@gmail.com>:
Guesswork is a fast track to frustration.
True :D But thats what always happens to me if I dont know enough and can't find a way to reproduce.
Thanks to your hint on core-image-ptest-glib-2.0 I was able to reproduce the issue. Running the test from /var/volatile/tmp didn't solve the issue. But compared to core-image-ptest-glib-2.0 where /tmp links to /var/tmp the tmpdir is handled by systemd tmp.mount in my image and thus is not a symbolic link.
According to systemd ducumentation /var/tmp and /tmp are not the same and are handled differently
https://systemd.io/TEMPORARY_DIRECTORIES/
Still I have no idea how this should be fixed or if the failed test could maybe ignored but I was able to pass the tests in core-image-ptest-glib-2.0 by removing the /tmp symlink and adding this line to fstab:
tmpfs /tmp tmpfs defaults 0 0
After a reboot the tests completed successful