summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-06-21 00:19:28 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2016-06-21 00:19:28 -0700
commit58cff1290dccce42fef418c0a7e42222a02f38b9 (patch)
tree3257739628ac6d7d9b3a288dcef9a5c22249a39c /lib
parent0521b9bb32387dd533d76dbb09f5226d865d8c06 (diff)
downloadspack-58cff1290dccce42fef418c0a7e42222a02f38b9.tar.gz
spack-58cff1290dccce42fef418c0a7e42222a02f38b9.tar.bz2
spack-58cff1290dccce42fef418c0a7e42222a02f38b9.tar.xz
spack-58cff1290dccce42fef418c0a7e42222a02f38b9.zip
Make environment test less sensitive to user config files.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/test/environment.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/spack/spack/test/environment.py b/lib/spack/spack/test/environment.py
index f3644cb0b7..2396961888 100644
--- a/lib/spack/spack/test/environment.py
+++ b/lib/spack/spack/test/environment.py
@@ -123,7 +123,12 @@ class EnvironmentTest(unittest.TestCase):
env = EnvironmentModifications.from_sourcing_files(*files)
modifications = env.group_by_name()
- self.assertEqual(len(modifications), 4)
+ # This is sensitive to the user's environment; can include
+ # spurious entries for things like PS1
+ #
+ # TODO: figure out how to make a bit more robust.
+ self.assertTrue(len(modifications) >= 4)
+
# Set new variables
self.assertEqual(len(modifications['NEW_VAR']), 1)
self.assertTrue(isinstance(modifications['NEW_VAR'][0], SetEnv))