Flake8
This commit is contained in:
parent
262ab40188
commit
89c9bec81e
@ -32,15 +32,16 @@
|
||||
from spack.test.tally_plugin import Tally
|
||||
"""Names of tests to be included in Spack's test suite"""
|
||||
|
||||
test_names = ['architecture', 'versions', 'url_parse', 'url_substitution', 'packages', 'stage',
|
||||
'spec_syntax', 'spec_semantics', 'spec_dag', 'concretize',
|
||||
'multimethod', 'install', 'package_sanity', 'config',
|
||||
'directory_layout', 'pattern', 'python_version', 'git_fetch',
|
||||
'svn_fetch', 'hg_fetch', 'mirror', 'modules', 'url_extrapolate',
|
||||
'cc', 'link_tree', 'spec_yaml', 'optional_deps',
|
||||
'make_executable', 'build_system_guess', 'lock', 'database',
|
||||
'namespace_trie', 'yaml', 'sbang', 'environment', 'cmd.find',
|
||||
'cmd.uninstall', 'cmd.test_install', 'cmd.test_compiler_cmd']
|
||||
test_names = [
|
||||
'architecture', 'versions', 'url_parse', 'url_substitution', 'packages',
|
||||
'stage', 'spec_syntax', 'spec_semantics', 'spec_dag', 'concretize',
|
||||
'multimethod', 'install', 'package_sanity', 'config', 'directory_layout',
|
||||
'pattern', 'python_version', 'git_fetch', 'svn_fetch', 'hg_fetch',
|
||||
'mirror', 'modules', 'url_extrapolate', 'cc', 'link_tree', 'spec_yaml',
|
||||
'optional_deps', 'make_executable', 'build_system_guess', 'lock',
|
||||
'database', 'namespace_trie', 'yaml', 'sbang', 'environment', 'cmd.find',
|
||||
'cmd.uninstall', 'cmd.test_install', 'cmd.test_compiler_cmd'
|
||||
]
|
||||
|
||||
|
||||
def list_tests():
|
||||
|
@ -44,12 +44,10 @@ def setUp(self):
|
||||
os.chdir(self.tmpdir)
|
||||
self.stage = None
|
||||
|
||||
|
||||
def tearDown(self):
|
||||
shutil.rmtree(self.tmpdir, ignore_errors=True)
|
||||
os.chdir(self.orig_dir)
|
||||
|
||||
|
||||
def check_archive(self, filename, system):
|
||||
mkdirp('archive')
|
||||
touch(join_path('archive', filename))
|
||||
@ -64,26 +62,20 @@ def check_archive(self, filename, system):
|
||||
guesser(stage, url)
|
||||
self.assertEqual(system, guesser.build_system)
|
||||
|
||||
|
||||
def test_autotools(self):
|
||||
self.check_archive('configure', 'autotools')
|
||||
|
||||
|
||||
def test_cmake(self):
|
||||
self.check_archive('CMakeLists.txt', 'cmake')
|
||||
|
||||
|
||||
def test_scons(self):
|
||||
self.check_archive('SConstruct', 'scons')
|
||||
|
||||
|
||||
def test_python(self):
|
||||
self.check_archive('setup.py', 'python')
|
||||
|
||||
|
||||
def test_R(self):
|
||||
self.check_archive('NAMESPACE', 'R')
|
||||
|
||||
|
||||
def test_unknown(self):
|
||||
self.check_archive('foobar', 'unknown')
|
||||
|
Loading…
Reference in New Issue
Block a user