Skip to content

Commit

Permalink
Fix RealTime tests that were sending signals too quickly for the slow…
Browse files Browse the repository at this point in the history
…er test platforms
  • Loading branch information
gvoskuilen committed Sep 6, 2024
1 parent d71da88 commit f343f70
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/testsuite_default_RealTime.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
# - SIGINT / SIGTERM
# --exit-after option
# --heartbeat-wall-period option
#
# Notes:
# - signal_sec=1 is too small to be reliably caught on some of the VMs
# and containers.
################################################################################

class testcase_Signals(SSTTestCase):
Expand All @@ -50,7 +54,7 @@ def test_RealTime_SIGUSR1(self):
# Run test
sdlfile = "{0}/test_RealTime.py".format(testsuitedir)
outfile = "{0}/test_RealTime_SIGUSR1.out".format(outdir)
self.run_sst(sdlfile, outfile, other_args="--exit-after=4", send_signal=signal.SIGUSR1, signal_sec=1)
self.run_sst(sdlfile, outfile, other_args="--exit-after=10", send_signal=signal.SIGUSR1, signal_sec=5)

line_count = 0
exit_count = 0
Expand Down Expand Up @@ -79,7 +83,7 @@ def test_RealTime_SIGUSR2(self):
# Run test
sdlfile = "{0}/test_RealTime.py".format(testsuitedir)
outfile = "{0}/test_RealTime_SIGUSR2.out".format(outdir)
self.run_sst(sdlfile, outfile, other_args="--exit-after=4", send_signal=signal.SIGUSR2, signal_sec=1)
self.run_sst(sdlfile, outfile, other_args="--exit-after=10", send_signal=signal.SIGUSR2, signal_sec=5)

line_count = 0
exit_count = 0
Expand Down Expand Up @@ -108,7 +112,7 @@ def test_RealTime_SIGINT(self):
# Run test
sdlfile = "{0}/test_RealTime.py".format(testsuitedir)
outfile = "{0}/test_RealTime_SIGINT.out".format(outdir)
self.run_sst(sdlfile, outfile, other_args="--exit-after=4", send_signal=signal.SIGINT, signal_sec=1)
self.run_sst(sdlfile, outfile, other_args="--exit-after=10", send_signal=signal.SIGINT, signal_sec=5)

line_count = 0
exit_count = 0
Expand Down Expand Up @@ -137,7 +141,7 @@ def test_RealTime_SIGTERM(self):
# Run test
sdlfile = "{0}/test_RealTime.py".format(testsuitedir)
outfile = "{0}/test_RealTime_SIGTERM.out".format(outdir)
self.run_sst(sdlfile, outfile, other_args="--exit-after=4", send_signal=signal.SIGTERM, signal_sec=1)
self.run_sst(sdlfile, outfile, other_args="--exit-after=10", send_signal=signal.SIGTERM, signal_sec=5)

line_count = 0
exit_count = 0
Expand Down

0 comments on commit f343f70

Please sign in to comment.