Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'unit_test_privileges' into 'master'
Unit test privileges

See merge request mer-core/nemo-qml-plugin-calendar!85
  • Loading branch information
pvuorela committed May 3, 2021
2 parents a768baa + 52cc8aa commit ab5773b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion rpm/nemo-qml-plugin-calendar-qt5.spec
@@ -1,7 +1,7 @@
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
Expand All @@ -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}.
Expand Down
2 changes: 1 addition & 1 deletion src/calendarmanager.cpp
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion tests/tests.xml
Expand Up @@ -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>
Expand Down

0 comments on commit ab5773b

Please sign in to comment.