From: Thierry Parmentelat <thierry.parmentelat@inria.fr>
Date: Thu, 25 Jun 2015 16:47:19 +0000 (+0200)
Subject: more macros
X-Git-Tag: tests-6.0-2~3
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=9b733a4719b75382285799e42b245108f986aaa1;p=tests.git

more macros
---

diff --git a/system/macros.py b/system/macros.py
index ae0c0f0..680b022 100644
--- a/system/macros.py
+++ b/system/macros.py
@@ -189,8 +189,17 @@ qemu_kill_mine nodestate_reinstall qemu_local_init bootcd qemu_local_config
 qemu_clean_mine qemu_export qemu_start qemu_timestamp qemu_nodefamily
 """.split()
 
+# turn node off and back on 
 sequences['reset_node'] = "qemu-cleanlog qemu-kill-mine qemu-start".split()
+# wait for the node to come back up all the way to boot mode
+sequences['wait_node'] = 'ping_node ssh_node_debug ssh_node_boot'.split()
+# set boot_state, reset and wait for the right state
+sequences['debug_mode'] = "nodestate-safeboot reset-node ssh-node-debug".split()
+sequences['boot_mode'] = "nodestate-boot reset-node wait-node".split()
+sequences['reinstall'] = "nodestate-reinstall reset-node wait-node".split()
+sequences['upgrade'] = "nodestate-upgrade reset-node wait-node".split()
+
 
+# maybe not too clear..
 sequences['bonding_node'] = 'node start-node'.split()
 
-sequences['wait_node'] = 'ping_node ssh_node_debug ssh_node_boot'.split()