Details
-
Bug
-
Resolution: Fixed
-
Minor
-
Halibut 8.0.0, Halibut 8.0.1, Halibut 8.0.2, Icefish 9.0.0
-
None
Description
Hi, all
I follow the instructions on https://docs.automotivelinux.org/docs/en/guppy/apis_services/reference/afb-test/3_Launch_the_tests.html to launch test on target board, but I can not successfully test any *test.wgt.
test process(on target board,use agl-service-telephony-test.wgt as example ):
raspberrypi3:/usr/AGL/apps/testwgt# afm-test ./agl-service-telephony-test.wgt
find: /home/0/app-data/agl-service-telephony-test: No such file or directory
ERROR: cannot-start
FAIL: Failed to start application agl-service-telephony-test@1.0-d226a35
ERROR: bad-request
null
log of journalctl -f:
Jul 30 22:11:32 raspberrypi3 afbd-agl-service-telephony-test@1.0-d226a35[761]: /bin/mkdir: cannot create directory '/home/0/app-data/agl-service-telephony-test': Permission denied Jul 30 22:11:32 raspberrypi3 systemd[1]: afm-appli-agl-service-telephony-test--1.0-d226a35--main@0.service: Control process exited, code=exited status=1 Jul 30 22:11:32 raspberrypi3 systemd[1]: afm-appli-agl-service-telephony-test--1.0-d226a35--main@0.service: Failed with result 'exit-code'. Jul 30 22:11:32 raspberrypi3 systemd[1]: Failed to start Test widget used to launch tests for the project agl-service-telephony. Jul 30 22:11:32 raspberrypi3 afm-system-daemon[258]: ERROR: start error system unit afm-appli-agl-service-telephony-test--1.0-d226a35--main@.service for uid 0: failed [/w/workspace/release-jjb-halibut-snapshot/MACHINE/raspberrypi3/label/agl-test-slave/repoclone/output/tmp/work/armv7vet2hf-neon-vfpv4-agl-linux-gnueabi/af-main/halibut+gitAUTOINC+533d5a1a51-r0/git/src/afm-urun.c:266] Jul 30 22:11:32 raspberrypi3 kernel: audit: type=1400 audit(1564524692.189:17): lsm=SMACK fn=smack_inode_permission action=denied subject="User::App::agl-service-telephony-test" object="_" requested=wx pid=761 comm="mkdir" name="app-data" dev="mmcblk0p2" ino=120375
I noticed this line "/bin/mkdir: cannot create directory '/home/0/app-data/agl-service-telephony-test': Permission denied".
Is there something wrong with appfw's permission policy? Or with my process method and enviroment configuration?
If it is a common applicaion, I can add the “require-permission: scope-platform or display" in config file to avoid the error. So I unpack the test wgt, modify the config.xml and wgtpkg-pack a new wgt. But afm-test new test wgt still failed.
log of the modified wgt(use agl-service-radio-test as example):
Jul 30 23:07:45 raspberrypi3 afm-system-daemon[258]: NOTICE: -- INSTALLING widget /usr/AGL/apps/testwgt/agl-service-radio-test-test.wgt to /var/local/lib/afm/applications -- [/w/workspace/release-jjb-halibut-snapshot/MACHINE/raspberrypi3/label/agl-test-slave/repoclone/output/tmp/work/armv7vet2hf-neon-vfpv4-agl-linux-gnueabi/af-main/halibut+gitAUTOINC+533d5a1a51-r0/git/src/wgtpkg-install.c:547] Jul 30 23:07:46 raspberrypi3 systemd[1]: Reloading. Jul 30 23:07:46 raspberrypi3 systemd[1]: Configuration file /lib/systemd/system/systemd-udevd.service.d/udev-shared.conf is marked executable. Please remove executable permission bits. Proceeding anyway. Jul 30 23:07:49 raspberrypi3 systemd[1]: Stopped target Sockets. Jul 30 23:07:49 raspberrypi3 systemd[1]: Stopping Sockets. Jul 30 23:07:49 raspberrypi3 systemd[1]: Reached target Sockets. Jul 30 23:07:49 raspberrypi3 afm-system-daemon[258]: ERROR: can't start system unit afm-appli-agl-service-radio-test--8.0--main.service for uid 0 [/w/workspace/release-jjb-halibut-snapshot/MACHINE/raspberrypi3/label/agl-test-slave/repoclone/output/tmp/work/armv7vet2hf-neon-vfpv4-agl-linux-gnueabi/af-main/halibut+gitAUTOINC+533d5a1a51-r0/git/src/afm-urun.c:252] Jul 30 23:07:49 raspberrypi3 afm-system-daemon[258]: NOTICE: -- UNINSTALLING widget of id agl-service-radio-test@8.0 from /var/local/lib/afm/applications -- [/w/workspace/release-jjb-halibut-snapshot/MACHINE/raspberrypi3/label/agl-test-slave/repoclone/output/tmp/work/armv7vet2hf-neon-vfpv4-agl-linux-gnueabi/af-main/halibut+gitAUTOINC+533d5a1a51-r0/git/src/wgtpkg-uninstall.c:47]
Anyone can figure out? Thanks.
Best Regards