summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Melara <maamelara@gmail.com>2016-04-08 10:28:30 -0700
committerMario Melara <maamelara@gmail.com>2016-04-08 10:28:30 -0700
commit6ff6c805af2a4626e0611f3798eedd3a6f1b3e06 (patch)
tree8b2541b2cd64a101493146a6fe80d720174f4a8f
parent7b777568ed27f2dc0f15283d0209541b65b47b24 (diff)
downloadspack-6ff6c805af2a4626e0611f3798eedd3a6f1b3e06.tar.gz
spack-6ff6c805af2a4626e0611f3798eedd3a6f1b3e06.tar.bz2
spack-6ff6c805af2a4626e0611f3798eedd3a6f1b3e06.tar.xz
spack-6ff6c805af2a4626e0611f3798eedd3a6f1b3e06.zip
Assigned self.front_os, and back_os to self.default. Helps with testing. If we're on a darwin or linux machine, chances are there is no back end or front end operating system, but rather than have those as None, I just assign them the default which is detected via python platform.
-rw-r--r--lib/spack/spack/platforms/darwin.py4
-rw-r--r--lib/spack/spack/platforms/linux.py2
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/spack/spack/platforms/darwin.py b/lib/spack/spack/platforms/darwin.py
index 4c3d38851f..7901f82d06 100644
--- a/lib/spack/spack/platforms/darwin.py
+++ b/lib/spack/spack/platforms/darwin.py
@@ -12,7 +12,11 @@ class Darwin(Platform):
super(Darwin, self).__init__('darwin')
self.add_target(self.default, Target(self.default))
mac_os = MacOsx()
+
self.default_os = mac_os.name
+ self.front_os = mac_os.name
+ self.back_os = mac_os.name
+
self.add_operating_system(mac_os.name, mac_os)
@classmethod
diff --git a/lib/spack/spack/platforms/linux.py b/lib/spack/spack/platforms/linux.py
index 3243a1dcdf..18050ac79e 100644
--- a/lib/spack/spack/platforms/linux.py
+++ b/lib/spack/spack/platforms/linux.py
@@ -13,6 +13,8 @@ class Linux(Platform):
self.add_target(self.default, Target(self.default))
linux_dist = LinuxDistro()
self.default_os = linux_dist.name
+ self.front_os = linux_dist.name
+ self.back_os = linux_dist.name
self.add_operating_system(linux_dist.name, linux_dist)
@classmethod