scenario.campaignargs module

Campaign runner program arguments.

class CampaignArgs

Bases: Args, CommonExecArgs

Campaign runner program arguments.

__init__(positional_args=True, default_outdir_cwd=True)

Defines program arguments for CampaignRunner.

Parameters:
  • positional_argsFalse to disable the scenario path positional arguments definition. Useful for user programs that wish to redefine it.

  • default_outdir_cwdFalse to disable the use of the current directory by default.

_default_outdir_cwd

Current directory as the default output directory flag.

_outdir

Output directory path.

Inner attribute. None until actually set, either with the –outdir option, or programmatically in sub-classes.

create_dt_subdir

True when an output subdirectory in CampaignArgs.outdir named with the campaign execution date and time should be created.

extra_info

Attribute names to display for extra info. Applicable when executing several tests.

test_suite_paths

Campaign file path.

property outdir

Output directory path as a public property.

_checkargs(args)

Check campaign arguments once parsed.

Returns:

True for success, False otherwise.