Comment 0 for bug 1049595

Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

A couple of jobs including cpu/scaling_test and stress/graphics built their log path with CHECKBOX_DATA, e.g:

graphics_stress_test -d -o $CHECKBOX_DATA/graphics-stress-results
fwts_test -c -l ${CHECKBOX_DATA}/scaling_test.log

But as they are executed with the root user, these logs are not created as expected in ~.checkbox or ~.cache/checkbox but at the root of the filesystem: /

drwxr-xr-x 24 root 4096 Sep 12 12:19 ./
drwxr-xr-x 24 root 4096 Sep 12 12:19 ../
drwxr-xr-x 2 root 4096 Aug 3 08:53 bin/
drwxr-xr-x 3 root 4096 Sep 11 09:16 boot/
drwxr-xr-x 2 root 4096 May 27 14:20 cdrom/
-rw-r--r-- 1 root 4090 Jun 20 09:10 cpu_scaling_test.log
drwxr-xr-x 17 root 4560 Sep 12 10:09 dev/
drwxr-xr-x 153 root 12288 Sep 12 10:11 etc/
-rw-r--r-- 1 root 72 Sep 12 12:11 graphics-stress-results
[...]
lrwxrwxrwx 1 root 33 Sep 11 09:15 initrd.img -> /boot/initrd.img-3.2.0-30-generic
lrwxrwxrwx 1 root 33 Aug 10 09:19 initrd.img.old -> /boot/initrd.img-3.2.0-29-generic
[...]
-rw-r--r-- 1 root 4243 Sep 12 12:21 scaling_test.log
[...]
lrwxrwxrwx 1 root 29 Sep 11 09:15 vmlinuz -> boot/vmlinuz-3.2.0-30-generic
lrwxrwxrwx 1 root 29 Aug 10 09:19 vmlinuz.old -> boot/vmlinuz-3.2.0-29-generic

These files are also use for attachments and we expect to find them in CHECKBOX_DATA, the user env var.