diff --git a/test/src/common/harnessStorage.c b/test/src/common/harnessStorage.c index a24cdd6bb..b8570eb22 100644 --- a/test/src/common/harnessStorage.c +++ b/test/src/common/harnessStorage.c @@ -249,7 +249,9 @@ hrnStorageList( // Generate a list of files/paths/etc List *list = lstNewP(sizeof(StorageInfo)); - storageInfoListP(storage, pathFull, hrnStorageListCallback, list, .sortOrder = sortOrderAsc, .recurse = !param.noRecurse); + storageInfoListP( + storage, pathFull, hrnStorageListCallback, list, .sortOrder = sortOrderAsc, .recurse = !param.noRecurse, + .expression = param.expression != NULL ? STR(param.expression) : NULL); // Remove files if requested if (param.remove) diff --git a/test/src/common/harnessStorage.h b/test/src/common/harnessStorage.h index 3a41d189c..9684f1284 100644 --- a/test/src/common/harnessStorage.h +++ b/test/src/common/harnessStorage.h @@ -62,6 +62,7 @@ typedef struct HrnStorageListParam VAR_PARAM_HEADER; bool remove; // Remove files after testing? bool noRecurse; // Do not recurse into subdirectories + const char *expression; // Filter the list based on expression const char *comment; // Comment } HrnStorageListParam;