Example #1
0
def teardown():
  try:
    j.destroy()
  except Exception as e:
    logging.warning(
        "Setup went wrong. This is not necessarily a bad news, "
        "in particular, if it is the first time you run the "
        "experiment: %s" % e)
Example #2
0
def init():
    try:
        j.g5k(config=CONF)
        j.inventory()
        j.destroy()
        j.emulate(CONF['tc'])
    except Exception as e:
        logging.error("Setup goes wrong. This is not necessarily a bad news, "
                      "in particular, if it is the first time you run the "
                      "experiment: %s" % e)