Skip to content

Commit

Permalink
Merge pull request #4561 from plars/generic-gadget-kernel-detection
Browse files Browse the repository at this point in the history
tests: generic detection of gadget and kernel snaps
  • Loading branch information
zyga authored Jan 31, 2018
2 parents 3fc6ad2 + a31b6da commit 650efee
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/lib/names.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
#!/bin/bash

gadget_name=$(snap list | sed -n 's/^\(pc\|pi[23]\|dragonboard\|cm3\) .*/\1/p')
kernel_name=$gadget_name-kernel

if [ "$kernel_name" = "pi3-kernel" ] || [ "$kernel_name" = "cm3-kernel" ]; then
kernel_name=pi2-kernel
fi
gadget_name=$(snap list | grep 'gadget$' | awk '{ print $1 }')
kernel_name=$(snap list | grep 'kernel$' | awk '{ print $1 }')

0 comments on commit 650efee

Please sign in to comment.