Make translation tests only fire on RELEASE_TESTING
authorGreg Sabino Mullane <[email protected]>
Fri, 4 Sep 2009 16:52:39 +0000 (12:52 -0400)
committerGreg Sabino Mullane <[email protected]>
Fri, 4 Sep 2009 16:52:39 +0000 (12:52 -0400)
t/03_translations.t

index 2abb9d8a1118b0e7a2521309deb6f970fbb396f6..e41b4e4921e1406e3a5fb7fac04263c244368f00 100644 (file)
@@ -13,7 +13,14 @@ BEGIN {
                'fr' => 'French',
                );
 }
-use Test::More tests => 3 + (5 * ((scalar keys %complete_langs)-1));
+use Test::More;
+
+if (!$ENV{RELEASE_TESTING}) {
+       plan (skip_all =>  'Test skipped unless environment variable RELEASE_TESTING is set');
+}
+else {
+       plan tests => 3 + (5 * ((scalar keys %complete_langs)-1));
+}
 
 my $file = 'check_postgres.pl';
 my ($fh, $slurp);