[Dev] Re: [commits] (dan) [9402] added platform specific test
exclusion
Heikki Toivonen
heikki at osafoundation.org
Tue Feb 7 13:42:48 PST 2006
> Revision
> 9402 <http://viewcvs.osafoundation.org/chandler?view=rev&rev=9402>
> Author
> dan
[...]
> +if sys.platform == "linux2" : tests_to_run = exclude(tests_to_run, exclude_on_linux)
> +if sys.platform == "darwin" : tests_to_run = exclude(tests_to_run, exclude_on_mac)
> +if sys.platform == "win32" : tests_to_run = exclude(tests_to_run, exclude_on_windows)
I would prefer if we checked for Windows and OS X and made all other
OSes to go the Linux route (i.e. if win, elif mac, else ).
We've also used os.name and sys.platform together to figure out where we
are running, but as long as we need the OSAF specific Python the above
will work.
--
Heikki Toivonen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : http://lists.osafoundation.org/pipermail/dev/attachments/20060207/785fd850/signature.pgp
More information about the Dev
mailing list