Stress tests Python scripts: fix semantics
[ctf-testsuite.git] / utils / python / ctftestsuite / stress.py
index 6f85ec5dbd6bfad388fced529d821c3749a26730..c6c8f87ce91320e9b726dd09c870d1e9fe06573e 100644 (file)
@@ -4,7 +4,7 @@ import sys
 import os
 
 
-class MetadataTest:
+class MetadataTestAssitant:
     BASIC_PROLOGUE = \
 '''/* CTF 1.8 */
 
@@ -48,7 +48,7 @@ trace {
 
         # validate size
         if args.size < 1:
-            MetadataTest._perror('wrong size: {}'.format(args.size))
+            MetadataTestAssitant._perror('wrong size: {}'.format(args.size))
 
         return args
 
@@ -79,7 +79,8 @@ trace {
 
     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]()
 
This page took 0.023341 seconds and 4 git commands to generate.