Groovy web console

subscribe to the feed Subscribe
to this
site

fail-with-map-and-default

Published 2 months ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def run_test_ctuser_works(Map config=[:], String machine, String run_tdf, String curo_tags) {    println("config $config")
    println(machine)
    println(run_tdf)
    println(curo_tags)
}

def run_test_ctuser_fails(Map config=[:], String machine, String run_tdf, String curo_tags='') {
    println("config $config")
    println(machine)
    println(run_tdf)
    println(curo_tags)
}

run_test_ctuser_works('oc', '/usr/g/stubelus_test/', '-T stress_test -T perf_test')
run_test_ctuser_fails('oc', '/usr/g/stubelus_test/', '-T stress_test -T perf_test')