X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=system%2Fconfig_default.py;h=ee1b4c5437966692e56aa342aef2afbb2bb5f3e1;hb=6523f2a0b4f7e05a42b9e921333b4d318230783a;hp=a7f6fc61e2df53bfb22bb7a9910dbfa2f48bd23c;hpb=c96cdd2fbc490cd4502159474f12e305f4f662d0;p=tests.git diff --git a/system/config_default.py b/system/config_default.py index a7f6fc6..ee1b4c5 100644 --- a/system/config_default.py +++ b/system/config_default.py @@ -139,14 +139,20 @@ def initscripts(options,index): 'script' : """#! /bin/sh (echo Starting test initscript: script1; date) > /tmp/script1.stamp echo "This is the stdout of the sliver initscript" -exec 1>&2 -echo "This is the stderr of the sliver initscript" +echo "This is the stderr of the sliver initscript" 1>&2 """, }}, { 'initscript_fields' : { 'enabled' : True, 'name':'script2', - 'script' : '#! /bin/sh\n (echo Starting test initscript: Stage 2; date) > /tmp/script2.stamp \n ', + 'script' : """#! /bin/sh +(echo Starting loop-forever test initscript: script2; date) > /tmp/script2.stamp +while true; do +echo "This is the stdout of the loop-for-ever sliver initscript" +echo "This is the stderr of the loop-for-ever sliver initscript" 1>&2 +sleep 10 +done +""", }}, ] return initscripts