From 8e5ac629e0203cd2da047e56eb29c29fc083a63a Mon Sep 17 00:00:00 2001
From: Francisco Acosta <fco.ja.ac@gmail.com>
Date: Fri, 19 Oct 2018 23:53:59 +0200
Subject: [PATCH] tests/riotboot: extend to accept slot 0 or 1

Modify the test to accept slot values 0 and 1.
---
 tests/riotboot/tests/01-run.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/riotboot/tests/01-run.py b/tests/riotboot/tests/01-run.py
index 07ececb93f..35c5b5d04d 100755
--- a/tests/riotboot/tests/01-run.py
+++ b/tests/riotboot/tests/01-run.py
@@ -11,9 +11,9 @@ from testrunner import run
 
 
 def testfunc(child):
-    # Ask for current slot, should be 0 (riotboot slot)
+    # Ask for current slot, should be 0 or 1
     child.sendline("curslotnr")
-    child.expect_exact("Current slot=0")
+    child.expect("Current slot=[0-1]")
     child.expect('>')
 
     # Ask for current slot header info and checks for basic output integrity
-- 
GitLab