diff options
Diffstat (limited to 'kpov_judge/tasks')
-rw-r--r-- | kpov_judge/tasks/copy_rename_20_files_tail_env/task.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/kpov_judge/tasks/copy_rename_20_files_tail_env/task.py b/kpov_judge/tasks/copy_rename_20_files_tail_env/task.py index b4f11ef..00d4daf 100644 --- a/kpov_judge/tasks/copy_rename_20_files_tail_env/task.py +++ b/kpov_judge/tasks/copy_rename_20_files_tail_env/task.py @@ -77,7 +77,7 @@ computers = { }, 'SimpleArbiter': { 'disks': [ - { 'name': 'simpleArbiterDhcp', + { 'name': 'simpleArbiter', # attempt automount }, #{ 'name': 'CDROM', @@ -268,8 +268,8 @@ def task_check(results, params): linknames = [] for i in xrange(20): linknames.append("".join([ r.choice("123456789abcdefghijk") for j in xrange(8)])) - print( results['grep_mama']) - print( results['grep_napake']) + #print( results['grep_mama']) + #print( results['grep_napake']) for i in dirnames + linknames + papa_fnames: if (i not in papa_fnames) and results['grep_napake'].find(i) < 0: task3_ok = False @@ -286,9 +286,9 @@ def task_check(results, params): if task3_ok: score += 2 # sledenje syslog - print( results['syslog_start_time']) - print( results['syslog_result']) - print( results['syslog_end_time']) + #print( results['syslog_start_time']) + #print( results['syslog_result']) + #print( results['syslog_end_time']) return score def prepare_disks(templates, params): @@ -347,7 +347,6 @@ def prepare_disks(templates, params): lx = l1 + l2 r.shuffle(lx) d.write("/var/www/html/{}".format(params['curl_fname']), ''.join(lx)) - d.write("/var/www/html/{}".format(params['curl_fname']), ''.join(lx)) # wc lx = ['\n']*int(params['wc_n_lines']) lx += ['a', 'b', 'c', 'repa', 'in', 'krompir', |