Commit e3ea4b39 authored by Sebastien Robin's avatar Sebastien Robin

erp5_test_result: use activeSense method of alarm instead of calling script

The activeSense method is doing more than calling the alarm script, it also change
the user. Without using activeSense, the alarm script will be called under the user
doing something on test node/ test suite, and this could conduct to different results
than if it is run with the nobody user.
parent 8eba1ff1
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>#Clean-up inactive Test Nodes\n <value> <string>#Clean-up inactive Test Nodes\n
\n \n
context.portal_alarms.task_distributor_alarm_optimize.activate(after_path=context.getPath()).TaskDistributorAlarm_optimize()\n context.portal_alarms.task_distributor_alarm_optimize.activate(after_path=context.getPath()).activeSense()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
258 259
\ No newline at end of file \ No newline at end of file
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