action_list: support setting actions in constructor
diff --git a/src/python/oftest/action_list.py b/src/python/oftest/action_list.py
index 75c014d..fbbddea 100644
--- a/src/python/oftest/action_list.py
+++ b/src/python/oftest/action_list.py
@@ -54,8 +54,10 @@
 
     """
 
-    def __init__(self):
-        self.actions = []
+    def __init__(self, actions=None):
+        if actions == None:
+            actions = []
+        self.actions = actions
 
     def pack(self):
         """