Commit ab5773b8 authored by pvuorela's avatar pvuorela

Merge branch 'unit_test_privileges' into 'master'

Unit test privileges

See merge request !85
parents a768baaa 52cc8aab
Name: nemo-qml-plugin-calendar-qt5
Summary: Calendar plugin for Nemo Mobile
Version: 0.6.13
Version: 0.6.19
Release: 1
License: BSD
URL: https://git.sailfishos.org/mer-core/nemo-qml-plugin-calendar
......@@ -21,6 +21,7 @@ BuildRequires: pkgconfig(accounts-qt5)
Summary: QML calendar plugin tests
BuildRequires: pkgconfig(Qt5Test)
Requires: %{name} = %{version}-%{release}
Requires: blts-tools
%description tests
%{summary}.
......
......@@ -275,7 +275,7 @@ void CalendarManager::cancelEventQueryRefresh(CalendarEventQuery *query)
static QDate agenda_endDate(const CalendarAgendaModel *model)
{
QDate endDate = model->endDate();
return endDate.isValid() ? endDate: model->startDate();
return endDate.isValid() ? endDate : model->startDate();
}
bool CalendarManager::isRangeLoaded(const CalendarData::Range &r, QList<CalendarData::Range> *missingRanges)
......
......@@ -3,7 +3,7 @@
<suite name="nemo-qml-plugins-calendar-qt5-tests" domain="mw">
<set name="unit-tests" feature="calendar mw">
<case manual="false" name="calendarmanager">
<step>/opt/tests/nemo-qml-plugins-qt5/calendar/tst_calendarmanager</step>
<step>SQLITESTORAGEDB=/tmp/testdb /usr/sbin/run-blts-root /bin/su $USER -g privileged -c /opt/tests/nemo-qml-plugins-qt5/calendar/tst_calendarmanager</step>
</case>
</set>
</suite>
......
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