Author: spouliot
Date: 2007-10-17 21:40:15 -0400 (Wed, 17 Oct 2007)
New Revision: 87729
Modified:
trunk/mcs/class/System.Drawing/Test/ChangeLog
trunk/mcs/class/System.Drawing/Test/HostIgnoreList.cs
Log:
2007-10-17 Sebastien Pouliot <[EMAIL PROTECTED]>
* HostIgnoreList.cs: Now use the DISTRO variable to track tests to
ignore.
Modified: trunk/mcs/class/System.Drawing/Test/ChangeLog
===================================================================
--- trunk/mcs/class/System.Drawing/Test/ChangeLog 2007-10-18 01:39:42 UTC
(rev 87728)
+++ trunk/mcs/class/System.Drawing/Test/ChangeLog 2007-10-18 01:40:15 UTC
(rev 87729)
@@ -1,3 +1,8 @@
+2007-10-17 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * HostIgnoreList.cs: Now use the DISTRO variable to track tests to
+ ignore.
+
2007-01-07 Sebastien Pouliot <[EMAIL PROTECTED]>
* HostIgnoreList.cs: New class to ignore some tests on specific hosts.
Modified: trunk/mcs/class/System.Drawing/Test/HostIgnoreList.cs
===================================================================
--- trunk/mcs/class/System.Drawing/Test/HostIgnoreList.cs 2007-10-18
01:39:42 UTC (rev 87728)
+++ trunk/mcs/class/System.Drawing/Test/HostIgnoreList.cs 2007-10-18
01:40:15 UTC (rev 87729)
@@ -33,6 +33,7 @@
namespace MonoTests {
+ // now misnamed - we check for the DISTRO env variable
public class HostIgnoreList {
private const string IgnoreListName = "nunit-host-ignore-list";
@@ -41,8 +42,11 @@
static HostIgnoreList ()
{
+ string hostname = Environment.GetEnvironmentVariable
("DISTRO");
+ if (hostname == null)
+ return;
+
if (File.Exists (IgnoreListName)) {
- string hostname = Environment.MachineName;
using (StreamReader sr = new StreamReader
(IgnoreListName)) {
string line = sr.ReadLine ();
while (line != null) {
@@ -69,7 +73,7 @@
return;
if (IgnoreList.Contains (testname)) {
- string msg = String.Format ("Test '{0}' was
ignore because it's defined in the '{1}' ignore list.",
+ string msg = String.Format ("Test '{0}' was
ignored because it's defined in the '{1}' ignore list.",
testname, IgnoreListName);
Assert.Ignore (msg);
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches