summaryrefslogtreecommitdiff
diff options
authorAlex Murray <alex.murray@canonical.com>2023-05-25 22:54:13 +0930
committerMichael Vogt <mvo@ubuntu.com>2023-05-26 15:18:29 +0200
commit00760d3baccc48672d3df9643879a49f3a117659 (patch)
treebcefaf1fd3ef73c94570be45ec0fa6bdab11a6f0
parentefdbc11d540372566bb43d7c9784ca93c0ce2e10 (diff)
tests/main/snap-seccomp-blocks-tty-injection: fix shellcheck errors
Signed-off-by: Alex Murray <alex.murray@canonical.com>
-rw-r--r--tests/main/snap-seccomp-blocks-tty-injection/task.yaml6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/main/snap-seccomp-blocks-tty-injection/task.yaml b/tests/main/snap-seccomp-blocks-tty-injection/task.yaml
index 1cb641014c..acee5e32a3 100644
--- a/tests/main/snap-seccomp-blocks-tty-injection/task.yaml
+++ b/tests/main/snap-seccomp-blocks-tty-injection/task.yaml
@@ -19,6 +19,6 @@ execute: |
sed -i 's|^}$| /dev/tty1 rw,\n}|' /var/lib/snapd/apparmor/profiles/snap.test-snapd-sh.sh
apparmor_parser -r /var/lib/snapd/apparmor/profiles/snap.test-snapd-sh.sh
- snap run test-snapd-sh.sh -c '$SNAP_COMMON/test-tiocsti' < /dev/tty1 2>&1 | MATCH 'normal TIOCSTI: -1 \(Operation not permitted\)'
- snap run test-snapd-sh.sh -c '$SNAP_COMMON/test-tiocsti' < /dev/tty1 2>&1 | MATCH 'high-bit-set TIOCSTI: -1 \(Operation not permitted\)'
- snap run test-snapd-sh.sh -c '$SNAP_COMMON/test-tioclinux' < /dev/tty1 2>&1 | MATCH 'ioctl\(0, TIOCLINUX, ...\) failed: Permission denied'
+ snap run test-snapd-sh.sh -c "\$SNAP_COMMON/test-tiocsti" < /dev/tty1 2>&1 | MATCH 'normal TIOCSTI: -1 \(Operation not permitted\)'
+ snap run test-snapd-sh.sh -c "\$SNAP_COMMON/test-tiocsti" < /dev/tty1 2>&1 | MATCH 'high-bit-set TIOCSTI: -1 \(Operation not permitted\)'
+ snap run test-snapd-sh.sh -c "\$SNAP_COMMON/test-tioclinux" < /dev/tty1 2>&1 | MATCH 'ioctl\(0, TIOCLINUX, ...\) failed: Permission denied'