From 6a053c19eb910aaf8e09ab957e3e397a7917e849 Mon Sep 17 00:00:00 2001 From: zhrf2020 <69804712+zhrf2020@users.noreply.github.com> Date: Tue, 4 Oct 2022 09:08:02 +0800 Subject: [PATCH] Update test-demo-buildsystem.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-demo-buildsystem.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test-demo-buildsystem.sh b/tests/test-demo-buildsystem.sh index 2dc78dc3..cd47f7c0 100755 --- a/tests/test-demo-buildsystem.sh +++ b/tests/test-demo-buildsystem.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 + echo "1..1" # Run "triggers" like ldconfig, gtk-update-icon-cache, etc.