From 699fdf8952795c189a67087c52db5bce42f03ef4 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Sun, 9 Aug 2020 12:48:40 -0700 Subject: [PATCH] tests/int/mount.bats: fix a check It's not a regex but a substring, so use a substring match. Fixes the following warning by shellcheck: > In mounts.bats line 20: > [[ "${lines[0]}" =~ '/tmp/bind/config.json' ]] > ^---------------------^ SC2076: Don't quote right-hand side of =~, it'll match literally rather than as a regex. Signed-off-by: Kir Kolyshkin --- tests/integration/mounts.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/mounts.bats b/tests/integration/mounts.bats index bf2afa3d..bd41dc6e 100644 --- a/tests/integration/mounts.bats +++ b/tests/integration/mounts.bats @@ -17,5 +17,5 @@ function teardown() { runc run test_bind_mount [ "$status" -eq 0 ] - [[ "${lines[0]}" =~ '/tmp/bind/config.json' ]] + [[ "${lines[0]}" == *'/tmp/bind/config.json'* ]] }