Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit438e845

Browse files
test_pg_ctl_wait_option is updated (#213)
When node is not stopped, we read and output a content of node log file to provide an additional information about this problem.It should help find a reason of unexpected problem with this test in CI.
1 parent1a4655c commit438e845

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

‎tests/test_simple.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,19 @@ def test_pg_ctl_wait_option(self):
438438
nAttempt=0
439439
whileTrue:
440440
ifnAttempt==C_MAX_ATTEMPTS:
441+
#
442+
# [2025-03-11]
443+
# We have an unexpected problem with this test in CI
444+
# Let's get an additional information about this test failure.
445+
#
446+
logging.error("Node was not stopped.")
447+
ifnotnode.os_ops.path_exists(node.pg_log_file):
448+
logging.warning("Node log does not exist.")
449+
else:
450+
logging.info("Let's read node log file [{0}]".format(node.pg_log_file))
451+
logFileData=node.os_ops.read(node.pg_log_file,binary=False)
452+
logging.info("Node log file content:\n{0}".format(logFileData))
453+
441454
raiseException("Could not stop node.")
442455

443456
nAttempt+=1

‎tests/test_simple_remote.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,19 @@ def test_pg_ctl_wait_option(self):
517517
nAttempt=0
518518
whileTrue:
519519
ifnAttempt==C_MAX_ATTEMPTS:
520+
#
521+
# [2025-03-11]
522+
# We have an unexpected problem with this test in CI
523+
# Let's get an additional information about this test failure.
524+
#
525+
logging.error("Node was not stopped.")
526+
ifnotnode.os_ops.path_exists(node.pg_log_file):
527+
logging.warning("Node log does not exist.")
528+
else:
529+
logging.info("Let's read node log file [{0}]".format(node.pg_log_file))
530+
logFileData=node.os_ops.read(node.pg_log_file,binary=False)
531+
logging.info("Node log file content:\n{0}".format(logFileData))
532+
520533
raiseException("Could not stop node.")
521534

522535
nAttempt+=1

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp