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>
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 \
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)