Skip to content

Commit

Permalink
Merge pull request #4215 from julpark-rh/nov9
Browse files Browse the repository at this point in the history
adding kernel log when it ends
  • Loading branch information
mergify[bot] authored Nov 12, 2024
2 parents a169aa8 + 5ebd22c commit 6139fe6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/cephfs/xfs_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import string
import traceback

from ceph.ceph import SocketTimeoutException
from tests.cephfs.cephfs_utilsV1 import FsUtils
from utility.log import Log

Expand Down Expand Up @@ -124,14 +125,21 @@ def run(ceph_cluster, **kw):
cmd="cd /root/xfstests-dev && ./check -d -T -g quick -e ceph.exclude",
check_ec=False,
long_running=True,
timeout=1800,
timeout=7200,
)
log.info("XFS tests completed successfully")
return 0
except Exception as e:
dmesg, _ = clients[0].exec_command(sudo=True, cmd="dmesg")
log.error(dmesg)
log.error(e)
log.error(traceback.format_exc())
return 1
except SocketTimeoutException as ste:
dmesg, _ = clients[0].exec_command(sudo=True, cmd="dmesg")
log.error(dmesg)
log.error(ste)
return 1
finally:
uninstall_commands = [
"dnf remove -y acl attr automake bc dbench dump e2fsprogs fio gawk gcc gdbm-devel git"
Expand Down

0 comments on commit 6139fe6

Please sign in to comment.