Skip to content

Commit fab9f31

Browse files
committed
Testsuite - Improve the auto-generated backtraces
Cherry-picked: 88743e1
1 parent 234f0ab commit fab9f31

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

testsuite/python/lib/atf.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ def start_slurmctld(clean=False, quiet=False):
560560
logging.warning("process slurmctld not found")
561561
for pid in pids:
562562
run_command(
563-
f'sudo gdb -p {pid} -ex "set debuginfod enabled on" -ex "set pagination off" -ex "set confirm off" -ex "thread apply all bt" -ex "quit"'
563+
f'sudo gdb -p {pid} -ex "set debuginfod enabled on" -ex "set pagination off" -ex "set confirm off" -ex "set print pretty on" -ex "set max-value-size unlimited" -ex "set print array-indexes on" -ex "set print array off" -ex "thread apply all bt full" -ex "quit"'
564564
)
565565
pytest.fail("Slurmctld is not running")
566566
else:
@@ -613,7 +613,7 @@ def start_slurmdbd(clean=False, quiet=False):
613613
logging.warning("process slurmdbd not found")
614614
for pid in pids:
615615
run_command(
616-
f'sudo gdb -p {pid} -ex "set debuginfod enabled on" -ex "set pagination off" -ex "set confirm off" -ex "thread apply all bt" -ex "quit"'
616+
f'sudo gdb -p {pid} -ex "set debuginfod enabled on" -ex "set pagination off" -ex "set confirm off" -ex "set print pretty on" -ex "set max-value-size unlimited" -ex "set print array-indexes on" -ex "set print array off" -ex "thread apply all bt full" -ex "quit"'
617617
)
618618
pytest.fail("Slurmdbd is not running")
619619
else:
@@ -837,7 +837,7 @@ def stop_slurm(fatal=True, quiet=False):
837837
logging.warning("Getting the bt of the still running slurmctld")
838838
for pid in pids:
839839
run_command(
840-
f'sudo gdb -p {pid} -ex "set debuginfod enabled on" -ex "set pagination off" -ex "set confirm off" -ex "thread apply all bt" -ex "quit"'
840+
f'sudo gdb -p {pid} -ex "set debuginfod enabled on" -ex "set pagination off" -ex "set confirm off" -ex "set print pretty on" -ex "set max-value-size unlimited" -ex "set print array-indexes on" -ex "set print array off" -ex "thread apply all bt full" -ex "quit"'
841841
)
842842

843843
# Build list of slurmds
@@ -868,7 +868,7 @@ def stop_slurm(fatal=True, quiet=False):
868868
failures.append(f"Some slurmds are still running ({pids})")
869869
for pid in pids:
870870
run_command(
871-
f'sudo gdb -p {pid} -ex "set debuginfod enabled on" -ex "set pagination off" -ex "set confirm off" -ex "thread apply all bt" -ex "quit"'
871+
f'sudo gdb -p {pid} -ex "set debuginfod enabled on" -ex "set pagination off" -ex "set confirm off" -ex "set print pretty on" -ex "set max-value-size unlimited" -ex "set print array-indexes on" -ex "set print array off" -ex "thread apply all bt full" -ex "quit"'
872872
)
873873
run_command(f"pgrep -f {properties['slurm-sbin-dir']}/slurmd -a", quiet=quiet)
874874

0 commit comments

Comments
 (0)