regressions: Allow test-launch-race.pl to be skipped.
authorRichard W.M. Jones <rjones@redhat.com>
Thu, 24 Nov 2011 16:54:17 +0000 (16:54 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 24 Nov 2011 21:12:42 +0000 (21:12 +0000)
export SKIP_TEST_LAUNCH_RACE_PL=1
will cause this test to be skipped.
(cherry picked from commit 3bbcbd5eeadabb1cc5a40b2f8ae586e6aafd39c6)

regressions/test-launch-race.pl

index 297c1b6..5a660ce 100755 (executable)
@@ -25,6 +25,9 @@ use POSIX;
 
 use Sys::Guestfs;
 
+# Allow this test to be skipped.
+exit 0 if $ENV{SKIP_TEST_LAUNCH_RACE_PL};
+
 # Use a temporary TMPDIR to ensure it's clean
 my $tmpdir = tempdir (CLEANUP => 1);
 $ENV{TMPDIR} = $tmpdir;