snap version generates garbage files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Firmware Test Suite |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I am working on a tool for Canonical CE-QA team [1] and I wanted to package fwts in the snap in order to report firmware logs for the HWE team to investigate.
I found that the snap version of FWTS (18.06.02) produces some garbage files.
Steps to reproduce
------------------
Prereq:
I'm using snapcraft 2.42.1 (rev1594) from the snap store, running on Ubuntu 18.04.
$ git clone git://kernel.
$ cd fwts
$ snapcraft cleanbuild
(...)
Snapping 'fwts' -
Snapped fwts_V18.
Retrieved fwts_V18.
$ snap install fwts_V18.
I then try to run the recommended tests [2], some garbage files appear:
$ sudo fwts -q -r fwts_results.log version cpufreq maxfreq msr mtrr nx virt aspm dmicheck apicedge klog oops esrt uefibootpath uefirtvariable uefirttime uefirtmisc --acpitests --log-level=high
$ ls -latrh
(...)
-rw-r--r-- 1 root root 54 Jul 12 15:16 userspace
-rw-r--r-- 1 root root 54 Jul 12 15:16 'powersave'$'\n'
$ cat userspace
/sys/devices/
$ cat 'powersave'$'\n'
/sys/devices/
This does not happen when I run the "HWE tests":
$ sudo fwts -q -r fwts_results.log version mtrr virt apicedge klog oops
I cannot reproduce this issue if I use the same version of FWTS from the stable PPA [3].
[1] https:/
[2] https:/
[3] https:/
I tried the fwts packaged in a snap not locally built (checkbox-oem-qa), and I don't see this issue... It might be related to snapcraft?