]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
ftests: Fix erroneous calls to log_error()
authorTom Hromatka <tom.hromatka@oracle.com>
Wed, 2 Aug 2023 18:39:06 +0000 (12:39 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 4 Aug 2023 17:33:22 +0000 (11:33 -0600)
Two places in the functional tests were calling a nonexistent
logging function - log_error().  Replace these erroneous calls
with calls to log_critical().

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
tests/ftests/ftests.py
tests/ftests/run.py

index a6aa6af0e90895d5c94da0599fefefb03110bffc..da26d5904ce1a0582a25dfac6d7c49c27bdd5ea6 100755 (executable)
@@ -262,11 +262,11 @@ def run_tests(config):
             try:
                 filesuite = filename.split('-')[1]
             except IndexError:
-                Log.log_error(
-                                'Skipping {}.  It doesn\'t conform to the '
-                                'filename format'
-                                ''.format(filename)
-                             )
+                Log.log_critical(
+                                 'Skipping {}.  It doesn\'t conform to the '
+                                 'filename format'
+                                 ''.format(filename)
+                                )
                 continue
 
             if config.args.suite == consts.TESTS_RUN_ALL_SUITES or \
index c985162d00df1723ac5b0fda093c202337dd5652..83a277a16f093650ca5c89a8870b4cd3022143ba 100644 (file)
@@ -78,7 +78,7 @@ class Run(object):
         if err.find('Error: websocket: bad handshake') >= 0:
             # LXD sometimes throws this error on underpowered machines.
             # Wait a bit, then try the request again
-            Log.log_error('Received \'{}\' error.  Re-running command'.format(err))
+            Log.log_critical('Received \'{}\' error.  Re-running command'.format(err))
             time.sleep(5)
             ret, out, err = Run.__run(command, shell_bool, timeout)