From 9b81bfb616a70269dd02be9c32102764b448fa71 Mon Sep 17 00:00:00 2001 From: bcherb2 Date: Wed, 18 Nov 2026 01:41:39 -0500 Subject: [PATCH] test: mutations for the docker script channel One pipes get.docker.com straight into a root shell; one reports the plugin rows as covered after a failed install. Both are killed by the unit suite. --- .../26-docker-script-piped-to-root-shell.mut | 18 ++++++++++++++++++ ...27-docker-plugins-covered-after-failure.mut | 13 +++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .tests/mutations/26-docker-script-piped-to-root-shell.mut create mode 100644 .tests/mutations/27-docker-plugins-covered-after-failure.mut diff --git a/.tests/mutations/26-docker-script-piped-to-root-shell.mut b/.tests/mutations/26-docker-script-piped-to-root-shell.mut new file mode 100644 index 0000000..1be46b8 --- /dev/null +++ b/.tests/mutations/26-docker-script-piped-to-root-shell.mut @@ -0,0 +1,18 @@ +# what: get.docker.com piped straight into a root sh instead of downloaded and checked +# why: no pipefail in sh: a 404 or truncated body runs as root AND reports success +# kills: a failed download is reported, not swallowed +# run: unit +<<