From d316ec86020b850a3a9e38ca58eccd31194a8230 Mon Sep 17 00:00:00 2001 From: zhrf2020 <69804712+zhrf2020@users.noreply.github.com> Date: Tue, 4 Oct 2022 09:12:01 +0800 Subject: [PATCH] Update test-rofiles-fuse.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1.A normal user executing this user's occasional use case fails; 2.The main reason is that the cmd: fusermount -u mnt failed, of course, fuse is not excluded as a defect; 3.It is recommended that ostree do a circumvention here: the normal user skips this use case. --- tests/test-rofiles-fuse.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test-rofiles-fuse.sh b/tests/test-rofiles-fuse.sh index a56a76c6d3..ad476b94f5 100755 --- a/tests/test-rofiles-fuse.sh +++ b/tests/test-rofiles-fuse.sh @@ -24,6 +24,12 @@ set -euo pipefail skip_without_fuse skip_without_user_xattrs +user=$(env | grep USER | cut -d "=" -f 2) +if [ "$user" != "root" ] +then + skip "user:$user does not support running the test case" +fi + setup_test_repository "bare" echo "1..12"