tweak the initscripts, both write on stdout and stderr and one loops forever
[tests.git] / system / config_default.py
index a4bda29..ee1b4c5 100644 (file)
@@ -136,12 +136,23 @@ def initscripts(options,index):
     initscripts= [ { 'initscript_fields' : 
                      { 'enabled' : True,
                        'name':'script1',
-                       'script' : '#! /bin/sh\n (echo Starting test initscript: Stage 1; date) > /tmp/script1.stamp \n ',
+                       'script' : """#! /bin/sh
+(echo Starting test initscript: script1; date) > /tmp/script1.stamp
+echo "This is the stdout 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