From 18f49ad151862ca34ddb754205d0232c00a5cc4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alfonso=20S=C3=A1nchez-Beato?= Date: Tue, 8 Jun 2021 17:29:53 +0200 Subject: [PATCH] tests: interfaces-classic-content-slot: count only fstab for our consumer --- tests/main/interfaces-classic-content-slot/task.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/main/interfaces-classic-content-slot/task.yaml b/tests/main/interfaces-classic-content-slot/task.yaml index 21ae87a31b..989354fd2e 100644 --- a/tests/main/interfaces-classic-content-slot/task.yaml +++ b/tests/main/interfaces-classic-content-slot/task.yaml @@ -28,7 +28,7 @@ execute: | MATCH "$CONSUMER_SNAP:shared-content-plug +$PROVIDER_SNAP:shared-content-slot" echo "And fstab files are created" - [ "$(find /var/lib/snapd/mount -type f -name "*.fstab" | wc -l)" -gt 0 ] + [ "$(find /var/lib/snapd/mount -type f -name "snap.$CONSUMER_SNAP.fstab" | wc -l)" -gt 0 ] echo "And we can use the shared content" "$CONSUMER_SNAP".content-plug | MATCH "Some shared content" @@ -40,10 +40,10 @@ execute: | snap disconnect "$CONSUMER_SNAP":shared-content-plug "$PROVIDER_SNAP":shared-content-slot echo "Then the fstab files are removed" - [ "$(find /var/lib/snapd/mount -type f -name "*.fstab" | wc -l)" -eq 0 ] + [ "$(find /var/lib/snapd/mount -type f -name "snap.$CONSUMER_SNAP.fstab" | wc -l)" -eq 0 ] echo "When the plug is reconnected" snap connect "$CONSUMER_SNAP":shared-content-plug "$PROVIDER_SNAP":shared-content-slot echo "Then the fstab files are recreated" - [ "$(find /var/lib/snapd/mount -type f -name "*.fstab" | wc -l)" -gt 0 ] + [ "$(find /var/lib/snapd/mount -type f -name "snap.$CONSUMER_SNAP.fstab" | wc -l)" -gt 0 ]