Skip to content

Commit

Permalink
Tests: Let's limit NLT based on file name
Browse files Browse the repository at this point in the history
and update file name

Cancel-prev-build: false
Parallel-build: true
Skip-build-el8-rpm: true
Skip-build-el9-rpm: true
Skip-build-leap15-rpm: true
Skip-build-ubuntu20-rpm: true
Skip-build-el8-gcc-dev: true

Skip-build-leap15-icc: true

Skip-unit-test: true
Skip-unit-test-memcheck: true
Skip-bullseye: true

Skip-fault-injection-test: false
Skip-func-test-vm-all: true
Skip-func-test-hw: true

Signed-off-by: Tomasz Gromadzki <[email protected]>
  • Loading branch information
grom72 committed Feb 28, 2025
1 parent ac13eb1 commit 16daffb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

// To use a test branch (i.e. PR) until it lands to master
// I.e. for testing library changes
// TO BE REMOVED AFTER https://github.com/daos-stack/pipeline-lib/pull/457 IS MERGED
@Library(value='pipeline-lib@grom72/daos-16661') _

/* groovylint-disable-next-line CompileStatic */
Expand Down
7 changes: 6 additions & 1 deletion src/vos/pmdk_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,18 @@ pmdk_log_function(enum pmemobj_log_level level, const char *file_name, unsigned
file_name += 3;
}

/* simplify file path by removing cyclic pattern "src/../src" */
if (strncmp(file_name, "src/../src", sizeof("src/../src") - 1) == 0) {
file_name += sizeof("src/../") - 1;
}

/** Add "pmdk/" prefix to file name
* Prefix is needed to filtered out PMDK messages in NLT resultst analysis
* as it is implemented in https://github.com/daos-stack/pipeline-lib/pull/457
*/
#define PMDK_LOG_FUNCTION_MAX_FILENAME 255
char file_name_buff[PMDK_LOG_FUNCTION_MAX_FILENAME] = "pmdk/";
char *local_file_name = file_name_buff + 5;
char *local_file_name = file_name_buff + sizeof("pmdk/") + 1;
while ((local_file_name < file_name_buff + PMDK_LOG_FUNCTION_MAX_FILENAME - 1) &&
(*file_name != '\0')) {
*(local_file_name++) = *(file_name++);
Expand Down
2 changes: 1 addition & 1 deletion utils/node_local_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2134,7 +2134,7 @@ class PosixTests():
@staticmethod
def generate_test_list():
"""Generate list of Posix tests"""
return [x for x in dir(PosixTests) if x.startswith('test_cont_copy')]
return [x for x in dir(PosixTests) if x.startswith('test')]

def __init__(self, server, conf, pool=None):
self.server = server
Expand Down

0 comments on commit 16daffb

Please sign in to comment.