summaryrefslogtreecommitdiff
path: root/kpov_judge
diff options
context:
space:
mode:
authormz6830@student.uni-lj.si <mz6830@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2014-12-12 15:20:56 +0000
committermz6830@student.uni-lj.si <mz6830@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2014-12-12 15:20:56 +0000
commitd3e883955f75f7e85a12af081c0612f56c425856 (patch)
tree4a3fe31a29747432bca532e8fb50c7184e018192 /kpov_judge
parente3b69adf81a9e73a54414c4db1411bcaf4614f9a (diff)
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@47 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
Diffstat (limited to 'kpov_judge')
-rw-r--r--kpov_judge/tasks/smb_nfs/task.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/kpov_judge/tasks/smb_nfs/task.py b/kpov_judge/tasks/smb_nfs/task.py
index 0efd406..b434c42 100644
--- a/kpov_judge/tasks/smb_nfs/task.py
+++ b/kpov_judge/tasks/smb_nfs/task.py
@@ -95,6 +95,18 @@ def gen_params(user_id, params_meta):
return params
def task_check(results, params):
+
+ score = 0
+ names = []
+ for key in results.keys():
+ names.append(key)
+
+ for i in range(len(names)):
+ if results[names[i]] is params[names[i]]:
+ score = score + 1
+
+ return score
+ """
import re
score = -9
if results['NM_nslookup'].find('Server:\t\t{0}\r'.format(params['DNS_NM'])) > -1:
@@ -107,6 +119,7 @@ def task_check(results, params):
score += 2
score = 0
return score
+ """
def prepare_disks(templates, params):
# d = templates['simpleArbiterDhcp']