From 9d8f1ec68e008375d587fabd6e220dc9ba1e424f Mon Sep 17 00:00:00 2001
From: Marc Bonnici <marc.bonnici@arm.com>
Date: Tue, 22 May 2018 14:53:25 +0100
Subject: [PATCH] config/core: Remove `by_spec` reboot policy

This reboot policy was left over from previous versions of WA and
is no longer relevant.
---
 wa/framework/configuration/core.py | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/wa/framework/configuration/core.py b/wa/framework/configuration/core.py
index 80d8a03a..93e23664 100644
--- a/wa/framework/configuration/core.py
+++ b/wa/framework/configuration/core.py
@@ -54,12 +54,11 @@ class RebootPolicy(object):
     :as_needed: Only reboot the device if it becomes unresponsive, or needs to be flashed, etc.
     :initial: The device will be rebooted when the execution first starts, just before
               executing the first workload spec.
-    :each_spec: The device will be rebooted before running a new workload spec.
     :each_iteration: The device will be rebooted before each new iteration.
 
     """
 
-    valid_policies = ['never', 'as_needed', 'initial', 'each_spec', 'each_iteration']
+    valid_policies = ['never', 'as_needed', 'initial', 'each_iteration']
 
     @staticmethod
     def from_pod(pod):
@@ -82,10 +81,6 @@ class RebootPolicy(object):
     def perform_initial_boot(self):
         return self.policy not in ['never', 'as_needed']
 
-    @property
-    def reboot_on_each_spec(self):
-        return self.policy in ['each_spec', 'each_iteration']
-
     @property
     def reboot_on_each_iteration(self):
         return self.policy == 'each_iteration'
@@ -602,12 +597,6 @@ class RunConfiguration(Configuration):
                 The device will be rebooted when the execution first starts,
                 just before executing the first workload spec.
 
-            ``"each_spec"``
-                The device will be rebooted before running a new workload spec.
-
-                .. note:: this acts the same as each_iteration when execution order
-                          is set to by_iteration
-
             ``"each_iteration"``
                 The device will be rebooted before each new iteration.
             '''),