GNOME Bugzilla – Bug 724197
tinderbox reports 'mac os x' when it's not
Last modified: 2015-01-03 20:33:32 UTC
This code: osx = commands.getoutput('sw_vers -productVersion') if osx: return 'Mac OS X ' + osx; in tinderbox.py results in seeing this on the summary page: Distribution Mac OS X sw_vers: not found if the lsb/os-release checks above it fail.
The output of 'uname' or the value of python's "sys.platform" would both probably make reasonable fallback values...
sys.platform == 'darwin' is the right way to do it. Shelling out is expensive, and there's no reason to do so.
Bug 742267 obsoletes this complaint. *** This bug has been marked as a duplicate of bug 742267 ***