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 <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin 2020-08-09 12:48:40 -07:00
parent 85a3069878
commit 699fdf8952
1 changed files with 1 additions and 1 deletions

View File

@ -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'* ]]
}