[Rt-commit] rt branch, 4.4/test-singleton-command, updated. rt-4.4.4-100-g317776173a

Jim Brandt jbrandt at bestpractical.com
Tue Apr 28 09:42:43 EDT 2020


The branch, 4.4/test-singleton-command has been updated
       via  317776173a3c5babf3f45e38ec16f5afc251beee (commit)
      from  57b57a284412f06e063d8d7c1e7d48dd58cb5ede (commit)

Summary of changes:
 lib/RT/Test.pm | 8 ++++++++
 1 file changed, 8 insertions(+)

- Log -----------------------------------------------------------------
commit 317776173a3c5babf3f45e38ec16f5afc251beee
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Tue Apr 28 09:28:34 2020 -0400

    Add docs for new singleton feature

diff --git a/lib/RT/Test.pm b/lib/RT/Test.pm
index 478a6fd215..d7199d6b0b 100644
--- a/lib/RT/Test.pm
+++ b/lib/RT/Test.pm
@@ -1798,6 +1798,14 @@ sub done_testing {
     $builder->done_testing(@_);
 }
 
+# Some utilities must only run one process at a time, so they check
+# for other running processes and quit if another is found. In parallel
+# test mode, this can cause test failures if two tests happen to run at
+# the same time.
+
+# This test helper checks for a running process, and if found sleeps and
+# tries again for a short time rather than immediately failing.
+
 sub run_singleton_command {
     my $self    = shift;
     my $command = shift;

-----------------------------------------------------------------------


More information about the rt-commit mailing list