[tracker/sam/ci] ci: Try running tests as a normal user
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/sam/ci] ci: Try running tests as a normal user
- Date: Sun, 1 Jul 2018 23:45:11 +0000 (UTC)
commit cb53b2fe9e7b1e76cc7d5e1787c8477a29c8c7a6
Author: Sam Thursfield <sam afuera me uk>
Date: Mon Jul 2 01:44:35 2018 +0200
ci: Try running tests as a normal user
.gitlab-ci.yml | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f0c4c83b2..c93a8b3b8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -25,7 +25,13 @@ test-autotools-fedora27:
- dnf install -y 'dnf-command(builddep)' redhat-rpm-config libseccomp-devel make
- dnf builddep -y tracker
+ # tests/libtracker-common/tracker-file-utils-test will fail if run as root,
+ # as it makes assertions about a path being unwritable. Better to test as a
+ # normal user in any case.
+ - useradd -Um tracker
+ - chown -R tracker:tracker .
+
script:
- - ./autogen.sh --disable-functional-tests
- - make
- - make check
+ - su tracker -c './autogen.sh --disable-functional-tests'
+ - su tracker -c 'make'
+ - su tracker -c 'make check'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]