Skip to content

Errors and warnings in unit tests. #3231

@shrinny

Description

@shrinny

Following the installation instructions here, running the unit tests after installation results in a lot of errors and warnings. Not sure if these are expected or not.

Link to full output

The majority of the warnings are WARNING: 'eb' not found in $PATH, failed to determine installation prefix!, which is weird because I do have eb on my $PATH. It seems like the tests change PATH and PYTHONPATH environment variables. Moreover, some of the test failures also seem to be related to the changed environment variables as running some of the failing tests in a python terminal (without the testing framework) seems to work.

On the other hand, most of the errors seem to be complaining about some toolchains not being available e.g
'Toolchain GCC not found, available toolchains: GCCcore,system'. Not sure if I was meant to install other toolchains first before running the unit tests? Doesn't seem to be mentioned in the documentation in any case.


System Information

user@system:~$ uname -a
Linux berni 5.3.0-24-generic #26-Ubuntu SMP Thu Nov 14 01:33:18 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
user@system:~$ python -V
Python 3.7.5
user@system:~$ type module
module is a function
module ()
{
    eval $($LMOD_CMD bash "$@") && eval $(${LMOD_SETTARG_CMD:-:} -s sh)
}
user@system:~$ type -f module
-bash: type: module: not found
user@system:~$ module --version

Modules based on Lua: Version 8.3.3  2020-03-02 15:56 -06:00
    by Robert McLay [email protected]

user@system:~$ module av EasyBuild
-------------------------- /opt/modules/all --------------------------   
EasyBuild/4.1.1 (L)

  Where:
   L:  Module is loaded

Use "module spider" to find all possible modules and extensions. 
Use "module keyword key1 key2 ..." to search for all possible modules 
matching any of the "keys"

user@system:~$ which -a eb
/opt/software/EasyBuild/4.1.1/bin/eb
user@system:~$ eb --version
This is EasyBuild 4.1.1 (framework: 4.1.1, easyblocks: 4.1.1) on host system.
user@system:~$

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions