Skip to content

Commit ade1554

Browse files
musamaanjumnuclearcat
authored andcommitted
config: rt-tests: set default priority of rt-migrate test
The priority of 96 if passed to rt-migrate causes failure. The test isn't designed well to handle high priority of 96. The test takes this priority and adds the count of number of tasks which becomes greater than 99. The 99 is the highest priority level for SCHED_FIFO. Hence, the priority setting of the main thread fails, we get warning and later test failure: Warning, can't set priority of main thread! Instead of fixing the test at this time, let's use priority of 90 instead of 96 such that the total priority of main thread remains below highest priority level. We can set any other lower priority than 90 here as well such as 51 which is set in the rt-migrate-test.sh by default. Relates kernelci/kernelci-project#439 Signed-off-by: Muhammad Usama Anjum <[email protected]>
1 parent 95f1915 commit ade1554

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

config/runtime/tests/rt-tests.jinja2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
THREADS: {{ threads|default('2') }}
2727
{% elif tst_cmd == 'pi-stress' %}
2828
MLOCKALL: {{ mlockall|default('true') }}
29+
{% elif tst_cmd == 'rt-migrate-test' %}
30+
PRIORITY: {{ priority|default('90') }}
2931
{% elif tst_cmd == 'signaltest' %}
3032
PRIORITY: {{ priority|default('98') }}
3133
THREADS: {{ threads|default('2') }}

0 commit comments

Comments
 (0)