struct tapi_job_simple_filter_t

Overview

A simplified description of an output filter. More…

#include <tapi_job.h>

struct tapi_job_simple_filter_t {
    // fields

    bool use_stdout;
    bool use_stderr;
    const char* filter_name;
    bool readable;
    te_log_level log_level;
    const char* re;
    unsigned extract;
    tapi_job_channel_t** filter_var;
};

Detailed Documentation

A simplified description of an output filter. The caller is expected to fill the fields one is interested in and leave others NULL or 0.

Fields

bool use_stdout

Attach to the job’s stdout

bool use_stderr

Attach to the job’s stderr

const char* filter_name

Filter name (default if NULL)

bool readable

Whether the filter is readable by the test

te_log_level log_level

Log level (if 0, output is not logged)

const char* re

Regexp to match

unsigned extract

Index of matched substring (0 means whole match)

tapi_job_channel_t** filter_var

Location of a variable to hold the filter handle