Actions
Bug #7552
closedTests fail in Vagrant box
Start date:
02/03/2022
Due date:
% Done:
100%
Estimated time:
To be discussed:
No
Description
Running make test
in vagrant results in 36 failed tests. Here is a couple of them. The other tests fail with the same error: No such file or directory: '/vagrant/chroot/etc/mentat/core
======================================================================
ERROR: Basic tests of various pluggable modules.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/vagrant/lib/vial/test/__init__.py", line 87, in setUp
self.app = self.setup_app()
File "/vagrant/lib/hawat/test/runner.py", line 64, in setup_app
config_func = _config_testapp_hawat
File "/vagrant/lib/hawat/app.py", line 76, in create_app_full
config_func = config_func or _config_app
File "/vagrant/lib/vial/__init__.py", line 59, in create_app_full
config_func(app.config)
File "/vagrant/lib/hawat/test/runner.py", line 30, in _config_testapp_hawat
_config_app(app_config)
File "/vagrant/lib/hawat/app.py", line 101, in _config_app
hawat.config.get_app_root_relative_config()
File "/vagrant/lib/hawat/config.py", line 290, in get_app_root_relative_config
pyzenkit.utils.get_resource_path(mentat.const.PATH_CFG_CORE)
File "/var/mentat/venv/lib/python3.7/site-packages/pyzenkit/jsonconf.py", line 315, in config_load_dir
all_files = os.listdir(config_dir)
FileNotFoundError: [Errno 2] No such file or directory: '/vagrant/chroot/etc/mentat/core'
======================================================================
ERROR: Test the test environment.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/vagrant/lib/vial/test/__init__.py", line 87, in setUp
self.app = self.setup_app()
File "/vagrant/lib/hawat/test/runner.py", line 64, in setup_app
config_func = _config_testapp_hawat
File "/vagrant/lib/hawat/app.py", line 76, in create_app_full
config_func = config_func or _config_app
File "/vagrant/lib/vial/__init__.py", line 59, in create_app_full
config_func(app.config)
File "/vagrant/lib/hawat/test/runner.py", line 30, in _config_testapp_hawat
_config_app(app_config)
File "/vagrant/lib/hawat/app.py", line 101, in _config_app
hawat.config.get_app_root_relative_config()
File "/vagrant/lib/hawat/config.py", line 290, in get_app_root_relative_config
pyzenkit.utils.get_resource_path(mentat.const.PATH_CFG_CORE)
File "/var/mentat/venv/lib/python3.7/site-packages/pyzenkit/jsonconf.py", line 315, in config_load_dir
all_files = os.listdir(config_dir)
FileNotFoundError: [Errno 2] No such file or directory: '/vagrant/chroot/etc/mentat/core'
======================================================================
ERROR: Perform the basic operativity tests.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/vagrant/lib/mentat/script/test_fetcher.py", line 131, in setUp
os.mkdir(directory)
FileNotFoundError: [Errno 2] No such file or directory: '/vagrant/chroot/tmp'
======================================================================
FAIL: Perform tests of parsing network records.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/vagrant/lib/mentat/datatype/test_internal.py", line 260, in test_01_conversions
self.assertEqual(mentat.datatype.internal.t_datetime('2017-06-13T10:55:52+00:00'), datetime.datetime.fromtimestamp(1497344152))
AssertionError: datetime.datetime(2017, 6, 13, 10, 55, 52) != datetime.datetime(2017, 6, 13, 8, 55, 52)
Related issues
Updated by Rajmund Hruška almost 3 years ago
- Related to Task #7041: Use Vagrant as alternative tool for local development added
Updated by Jan Mach almost 3 years ago
- Target version changed from Backlog to 2.10
Updated by Rajmund Hruška over 2 years ago
- Status changed from New to In Progress
- Assignee changed from Jan Mach to Rajmund Hruška
- % Done changed from 0 to 50
I think this was partly done in 5327e701. I can look at those skipped tests, I think I know how to solve them.
Updated by Rajmund Hruška over 2 years ago
- Status changed from In Progress to Resolved
- % Done changed from 50 to 100
Updated by Rajmund Hruška over 2 years ago
- Status changed from Resolved to Closed
Merged into devel.
Actions