Commit Graph

30 Commits

Author SHA1 Message Date
Michal Rakowski
5edbf2a5a9 conftest: execute casadm-related cleanup only if CAS is installed during teardown
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2020-01-15 15:02:48 +01:00
Robert Baldyga
e7d3fada4d
Merge pull request #248 from katlapinka/init-config-class
Create init config class representation
2020-01-14 13:31:17 +01:00
Katarzyna Lapinska
53664937ba Create init config class representation 2020-01-14 09:35:30 +01:00
Robert Baldyga
5756edac1b tests: Enable serial_log plugin
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2020-01-13 16:09:25 +01:00
Robert Baldyga
a38f76d28a tests: Update TF - plugins
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2020-01-07 08:59:00 +01:00
Katarzyna Lapinska
24d9bc9448 Small prepare fixes: remove dm devices and move setting default init config 2019-12-19 11:55:03 +01:00
Jan Musial
d9074c1950 Add cleanup of DM in conftest
Signed-off-by: Jan Musial <jan.musial@intel.com>
2019-12-18 16:35:54 +01:00
Katarzyna Lapinska
70955c1274 Adapt CAS API to handle disk plugging and fix for setting cleaning/cutoff params 2019-12-13 09:14:09 +01:00
Robert Baldyga
a53846953c Use TestRun.makereport()
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-11-29 13:04:25 +01:00
Robert Baldyga
263f3137da Raise exception instead of using TestRun.exception()
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-11-29 13:04:25 +01:00
Rafal Stefanowski
923015ed1e Improve handling of process killing
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2019-11-28 11:50:44 +01:00
Robert Baldyga
913be2c7b8 tests: Don't use log before it's created
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-11-27 13:10:01 +01:00
Robert Baldyga
6e1770804b tests: Add missing import pytests in conftest.py
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-11-27 12:46:38 +01:00
Michał Mielewczyk
e70a807839
Merge pull request #200 from robertbaldyga/fix-exceptions
tests: Handle pytest test state properly
2019-11-27 11:11:31 +01:00
Robert Baldyga
116d13364b tests: Handle pytest test state properly
- Log information about test fail in case of exception.
- Skip teardown in case of test skip (setup is skipped by default).

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-11-27 10:42:25 +01:00
Michal Mielewczyk
9c31e15d48 Override DUT's disks in conftest.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2019-11-20 22:07:19 -05:00
Katarzyna Lapinska
783daba8d4 Improve error handling and exception messages 2019-11-14 10:47:57 +01:00
Katarzyna Lapinska
eedb4ded7c Make opencas plugin as singleton class 2019-11-06 08:32:29 +01:00
Michał Mielewczyk
5d643a48d8
Merge pull request #172 from robertbaldyga/update-installer
tests: Update installer
2019-11-05 14:49:39 +01:00
Robert Baldyga
7dd5a6fc12 tests: Remove unused adoptions
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-11-04 14:46:36 +01:00
Katarzyna Lapinska
291ea908aa Destroy Log instance at the end of teardown method 2019-11-04 13:30:29 +01:00
Katarzyna Lapinska
63937439b4 Add cache config and fix for cas modules names 2019-10-31 13:41:01 +01:00
Robert Baldyga
e4a31f51a5 Set working dir
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-30 16:15:54 +01:00
Robert Baldyga
fdf72785c7 Set repo_dir
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-30 16:00:24 +01:00
Robert Baldyga
c98b7e1bb3 Use git utils from cas API
Test framework does no longer provide git_utils, so we switch
to local implementation.

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-30 10:30:14 +01:00
Robert Baldyga
ba9876ed52 Simplify waiting for connection
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-29 10:19:13 +01:00
Robert Baldyga
b65ff40bf0 Use "require_disk" mark
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-29 10:19:13 +01:00
Robert Baldyga
d5c39c8108 Append test-framework path before first imports from framework
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-29 08:53:18 +01:00
Katarzyna Lapinska
35d52caf74 Enable logging mechanism and example of logger usage in one test 2019-10-28 13:19:00 +01:00
Robert Baldyga
4fb82abeca Move OCL tests from test-framework repository
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-18 15:27:21 +02:00