Ignore:
Timestamp:
11 Jun 2012, 13:24:39 (12 years ago)
Author:
uli
Message:

Consider instance mode when starting/stopping instances.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.stress/trunk/kofa01/post_run.py

    r8672 r8681  
    1 ## Actions to do after test runs.
     1"""Script run after tests have been done.
     2
     3This script is run with some additional globals set:
     4
     5- project_name: The name of this project (dir)
     6- cmd_opts: Commandline args from stress-run invocation
     7  Includes the stresstest-project directory.
     8- cfg_opts: options as set in local config.cfg.
     9
     10Context Python is normally the version used when running bootstrap on
     11the waeup.stress package.
     12"""
    213import waeup.stress
    314
    4 instance = 'kofa'
     15instance=cfg_opts['instance']
     16mode = cfg_opts['instance_mode']
    517
    6 waeup.stress.stop_instance(instance)
    7 waeup.stress.configure()
     18waeup.stress.stop_instance(instance, mode=mode)
Note: See TracChangeset for help on using the changeset viewer.