ColinIanKing / fwts

NOT THE UPSTEAM FWTS REPO, see https://github.com/fwts/fwts instead!
https://wiki.ubuntu.com/Kernel/Reference/fwts
28 stars 11 forks source link

lib: check for fwts running inside snap, add --devmode help in error … #15

Open ColinIanKing opened 10 months ago

ColinIanKing commented 10 months ago

…message

BugLink: https://bugs.launchpad.net/bugs/2045910

Add a naïve check to see if fwts is running inside a snap by checking for the $SNAP environment variable being set. Add a --devnode help error message to help user understand why tests are failing.

xypron commented 10 months ago

confinement: devmode could be defined in snapcraft.yaml. This would force the user to install with --devmode.

xypron commented 10 months ago

Why would you write the message concerning devmode only for non-root users?

xypron commented 9 months ago

Commit ffc2469b4ecf ("snapcraft: specify devmode confinement for fwts snap") obsoletes this merge request. Please, close it.