Hi Pieter,

The test failures due to hitting SystemExit are surprising, I'm not quite sure what's going on there and why these fail for you. The sys.exit() you're hitting should only be called when one of the --avail-X/--show-X/--list-X command line options is used.

What kind of system are you running the tests on?
Did you set particular environment variables prior to running the tests, especially ones starting with $TEST_EASYBUILD ?

The failing tests for the scripts probably indicate a problem in the tests themselves, since it seems the vsc namespace isn't defined when running the scripts.
I'll look into fixing those, thanks for reporting this.

How did you install EasyBuild exactly? That would be helpful to know to determine the cause of the failing 'scripts' tests.


regards,

Kenneth



On 13/04/15 17:12, Pieter Neerincx wrote:
Dear EasyBuild devs,

Recently I installed 2.0.0 and when I run the tests 8 of the 252 fail (see 
below): is this really a problem or can I safely ignore these failures?

Cheers,

Pi

======================================================================
ERROR: Test the deprecated option
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/test/framework/options.py",
 line 1125, in test_deprecated
     go_args=['--deprecated=0.%s' % orig_value],
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/tools/options.py",
 line 105, in __init__
     super(EasyBuildOptions, self).__init__(*args, **kwargs)
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/vsc_base-2.1.2-py2.6.egg/vsc/utils/generaloption.py",
 line 767, in __init__
     self.postprocess()
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/tools/options.py",
 line 401, in postprocess
     self._postprocess_list_avail()
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/tools/options.py",
 line 497, in _postprocess_list_avail
     sys.exit(0)
SystemExit: 0

======================================================================
ERROR: Test the experimental option
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/test/framework/options.py",
 line 1088, in test_experimental
     go_args=['--disable-experimental'],
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/tools/options.py",
 line 105, in __init__
     super(EasyBuildOptions, self).__init__(*args, **kwargs)
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/vsc_base-2.1.2-py2.6.egg/vsc/utils/generaloption.py",
 line 767, in __init__
     self.postprocess()
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/tools/options.py",
 line 401, in postprocess
     self._postprocess_list_avail()
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/tools/options.py",
 line 497, in _postprocess_list_avail
     sys.exit(0)
SystemExit: 0

======================================================================
ERROR: Test effect of XDG_CONFIG* environment variables on default 
configuration.
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/test/framework/config.py",
 line 396, in test_XDG_CONFIG_env_vars
     eb_go = eboptions.parse_options(args=[])
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/tools/options.py",
 line 646, in parse_options
     go_args=args)
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/tools/options.py",
 line 105, in __init__
     super(EasyBuildOptions, self).__init__(*args, **kwargs)
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/vsc_base-2.1.2-py2.6.egg/vsc/utils/generaloption.py",
 line 767, in __init__
     self.postprocess()
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/tools/options.py",
 line 401, in postprocess
     self._postprocess_list_avail()
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/tools/options.py",
 line 497, in _postprocess_list_avail
     sys.exit(0)
SystemExit: 0

ERROR: Test default configuration.
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/test/framework/config.py",
 line 85, in test_default_config
     eb_go = eboptions.parse_options(args=[])
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/tools/options.py",
 line 646, in parse_options
     go_args=args)
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/tools/options.py",
 line 105, in __init__
     super(EasyBuildOptions, self).__init__(*args, **kwargs)
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/vsc_base-2.1.2-py2.6.egg/vsc/utils/generaloption.py",
 line 767, in __init__
     self.postprocess()
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/tools/options.py",
 line 401, in postprocess
     self._postprocess_list_avail()
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/tools/options.py",
 line 497, in _postprocess_list_avail
     sys.exit(0)
SystemExit: 0

======================================================================
ERROR: Test new-style configuration (based on generaloption).
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/test/framework/config.py",
 line 119, in test_generaloption_config
     options = init_config(args=[])
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/test/framework/utilities.py",
 line 296, in init_config
     eb_go = eboptions.parse_options(args=args)
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/tools/options.py",
 line 646, in parse_options
     go_args=args)
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/tools/options.py",
 line 105, in __init__
     super(EasyBuildOptions, self).__init__(*args, **kwargs)
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/vsc_base-2.1.2-py2.6.egg/vsc/utils/generaloption.py",
 line 767, in __init__
     self.postprocess()
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/tools/options.py",
 line 401, in postprocess
     self._postprocess_list_avail()
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/tools/options.py",
 line 497, in _postprocess_list_avail
     sys.exit(0)
SystemExit: 0

======================================================================
ERROR: Test use of new-style configuration file.
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/test/framework/config.py",
 line 195, in test_generaloption_config_file
     options = init_config(args=args)
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/test/framework/utilities.py",
 line 296, in init_config
     eb_go = eboptions.parse_options(args=args)
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/tools/options.py",
 line 646, in parse_options
     go_args=args)
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/tools/options.py",
 line 105, in __init__
     super(EasyBuildOptions, self).__init__(*args, **kwargs)
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/vsc_base-2.1.2-py2.6.egg/vsc/utils/generaloption.py",
 line 767, in __init__
     self.postprocess()
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/tools/options.py",
 line 401, in postprocess
     self._postprocess_list_avail()
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/tools/options.py",
 line 497, in _postprocess_list_avail
     sys.exit(0)
SystemExit: 0

======================================================================
ERROR: Test fix_broken_easyconfigs.py script.
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/test/framework/scripts.py",
 line 156, in test_fix_broken_easyconfig
     run_cmd(script_cmd)
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/tools/run.py",
 line 80, in inner
     return func(cmd, *args, **kwargs)
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/tools/run.py",
 line 153, in run_cmd
     return parse_cmd_output(cmd, stdouterr, ec, simple, log_all, log_ok, 
regexp)
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/tools/run.py",
 line 384, in parse_cmd_output
     _log.error('cmd "%s" exited with exitcode %s and output:\n%s' % (cmd, ec, 
stdouterr))
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/tools/build_log.py",
 line 113, in error
     raise EasyBuildError(newMsg)
EasyBuildError: 'EasyBuild crashed with an error (at easybuild/tools/run.py:384 in parse_cmd_output): cmd 
"PYTHONPATH=/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg:$PYTHONPATH:/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/test/framework/sandbox
 
/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/scripts/fix_broken_easyconfigs.py
 /tmp/eb-wMpEU_/tmphqr7sC/nosuchsoftware.eb" exited with exitcode 1 and output:\nTraceback (most 
recent call last):\n  File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/scripts/fix_broken_easyconfigs.py",
 line 34, in <module>\n    from vsc.utils import fancylogger\nImportError: No module named 
vsc.utils\n'

======================================================================
ERROR: Test for generate_software_list.py script.
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/test/framework/scripts.py",
 line 68, in test_generate_software_list
     out, ec = run_cmd(cmd, simple=False)
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/tools/run.py",
 line 80, in inner
     return func(cmd, *args, **kwargs)
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/tools/run.py",
 line 153, in run_cmd
     return parse_cmd_output(cmd, stdouterr, ec, simple, log_all, log_ok, 
regexp)
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/tools/run.py",
 line 384, in parse_cmd_output
     _log.error('cmd "%s" exited with exitcode %s and output:\n%s' % (cmd, ec, 
stdouterr))
   File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/tools/build_log.py",
 line 113, in error
     raise EasyBuildError(newMsg)
EasyBuildError: 'EasyBuild crashed with an error (at easybuild/tools/run.py:384 in parse_cmd_output): cmd 
"python 
/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/scripts/generate_software_list.py
 --local --quiet --path /tmp/eb-wMpEU_/tmplxYFJg" exited with exitcode 1 and output:\nTraceback 
(most recent call last):\n  File 
"/gcc/software/EasyBuild/2.0.0/lib/python2.6/site-packages/easybuild_framework-2.0.0-py2.6.egg/easybuild/scripts/generate_software_list.py",
 line 36, in <module>\n    import easybuild.tools.build_log  # ensure use of 
EasyBuildLog\nImportError: No module named build_log\n'

----------------------------------------------------------------------
Ran 252 tests in 5029.959s

FAILED (errors=8)
ERROR: Not all tests were successful.


-------------------------------------------------------------
phone: +31 6 143 66 783
e-mail: [email protected]
skype:  pieter.online
-------------------------------------------------------------

Reply via email to