On 08/29/12 11:00 AM, Erik Trauschke wrote:
This is a quick fix for 7194691 which might save people, who don't know
about the unwritten rule of running the test suite under locale C, some
time.

I wonder could we also raise TestSkippedExceptions for any tests that are known fail in non-C locales (I forget what these are off the top of my head, but there's 2 or 3)

I was going to suggest a wrapper[1] to force the test to run in C, but it's actually useful to test in non-C locales too I think.

        cheers,
                        tim

[1] along the lines of

#!/usr/bin/python
import os
import subprocess
import sys

if __name__ == "__main__":
    if os.environ.get("LANG", "C") != "C":
        print "restarting in C locale!"
        os.environ["LANG"] = "C"
        p = subprocess.Popen(sys.argv)
        sys.stdout, sys.stderr = p.communicate()
    else:
        print "already running in C locale"
        # continue with the rest of the suite
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to