From 53fea983a90447865c429c2573bfb36cba179054 Mon Sep 17 00:00:00 2001 From: "gasperfele@fri1.uni-lj.si" Date: Wed, 1 Apr 2015 20:32:28 +0000 Subject: added hints to task results git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@296 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414 --- kpov_judge/tasks/radius_multiple_realms/task.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'kpov_judge/tasks/radius_multiple_realms') diff --git a/kpov_judge/tasks/radius_multiple_realms/task.py b/kpov_judge/tasks/radius_multiple_realms/task.py index f4e2d11..75df722 100644 --- a/kpov_judge/tasks/radius_multiple_realms/task.py +++ b/kpov_judge/tasks/radius_multiple_realms/task.py @@ -109,6 +109,7 @@ def gen_params(user_id, params_meta): def task_check(results, params): import re score = -9 + hints = [] if results['NM_nslookup'].find('Server:\t\t{0}\r'.format(params['DNS_NM'])) > -1: score += 3 if results['static_nslookup'].find('Server:\t\t{0}\r'.format(params['DNS_static'])) > -1: @@ -118,7 +119,7 @@ def task_check(results, params): if not re.search(r'eth0 +802-.*connected', results['static_nmcli']): score += 2 score = 0 - return score + return score, hints def prepare_disks(templates, params): # d = templates['simpleArbiterDhcp'] -- cgit v1.2.1