diff options
| author | Alex Murray <alex.murray@canonical.com> | 2023-05-25 22:54:13 +0930 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@gmail.com> | 2023-05-26 18:32:26 +0200 |
| commit | 84c4f0c4b972a895beb32181aa7600b47d7560d6 (patch) | |
| tree | ccd32359bc5ed3302f6e61cfa6b0a01df44e99b1 | |
| parent | 3ddd3f73b33626bde96c13e52653c3f7d980e073 (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.yaml | 6 |
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' |
