Commit 30c2745b authored by mvogt's avatar mvogt

[qtcontacts-sqlite] Use run-blts-root to run test steps with privileges

Where necessary, use the run-blts-root tool to run test steps as
the privileged nemo user.
parent 1fc96a38
......@@ -24,6 +24,7 @@ Requires: qt5-plugin-sqldriver-sqlite
Summary: Unit tests for qtcontacts-sqlite-qt5
Group: System/Libraries
BuildRequires: pkgconfig(Qt5Test)
Requires: blts-tools
Requires: %{name} = %{version}-%{release}
%description tests
......
......@@ -5,11 +5,11 @@
<set name="unit-tests" feature="qtcontacts-sqlite-qt5">
<description>Backend correctness automatic tests</description>
<case manual="false" name="aggregation">
<step>rm -rf /home/nemo/.local/share/system/privileged/Contacts/qtcontacts-sqlite-test</step>
<step>/usr/sbin/run-blts-root /bin/su -g privileged -c 'rm -rf /home/nemo/.local/share/system/privileged/Contacts/qtcontacts-sqlite-test' nemo</step>
<step>/opt/tests/qtcontacts-sqlite-qt5/tst_aggregation</step>
</case>
<case manual="false" name="contactmanager">
<step>rm -rf /home/nemo/.local/share/system/privileged/Contacts/qtcontacts-sqlite-test</step>
<step>/usr/sbin/run-blts-root /bin/su -g privileged -c 'rm -rf /home/nemo/.local/share/system/privileged/Contacts/qtcontacts-sqlite-test' nemo</step>
<step>/opt/tests/qtcontacts-sqlite-qt5/tst_qcontactmanager</step>
</case>
<case manual="false" name="contactmanagerfiltering">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment