projects
/
ctf-testsuite.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Stress tests Python scripts: fix semantics
[ctf-testsuite.git]
/
utils
/
python
/
ctftestsuite
/
stress.py
diff --git
a/utils/python/ctftestsuite/stress.py
b/utils/python/ctftestsuite/stress.py
index 6f85ec5dbd6bfad388fced529d821c3749a26730..c6c8f87ce91320e9b726dd09c870d1e9fe06573e 100644
(file)
--- a/
utils/python/ctftestsuite/stress.py
+++ b/
utils/python/ctftestsuite/stress.py
@@
-4,7
+4,7
@@
import sys
import os
import os
-class MetadataTest:
+class MetadataTest
Assitant
:
BASIC_PROLOGUE = \
'''/* CTF 1.8 */
BASIC_PROLOGUE = \
'''/* CTF 1.8 */
@@
-48,7
+48,7
@@
trace {
# validate size
if args.size < 1:
# validate size
if args.size < 1:
- MetadataTest._perror('wrong size: {}'.format(args.size))
+ MetadataTest
Assitant
._perror('wrong size: {}'.format(args.size))
return args
return args
@@
-79,7
+79,8
@@
trace {
def _do_action(self):
if self._action not in self._actions:
def _do_action(self):
if self._action not in self._actions:
- MetadataTest._perror('invalid action: "{}"'.format(self._action))
+ msg = 'invalid action: "{}"'.format(self._action)
+ MetadataTestAssitant._perror(msg)
self._actions[self._action]()
self._actions[self._action]()
This page took
0.035831 seconds
and
4
git commands to generate.