summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.gitlab-ci/bare-metal/poe-powered.sh3
-rwxr-xr-x.gitlab-ci/bare-metal/poe_run.py4
2 files changed, 5 insertions, 2 deletions
diff --git a/.gitlab-ci/bare-metal/poe-powered.sh b/.gitlab-ci/bare-metal/poe-powered.sh
index c3e8769b52b..de413b22bb8 100755
--- a/.gitlab-ci/bare-metal/poe-powered.sh
+++ b/.gitlab-ci/bare-metal/poe-powered.sh
@@ -100,7 +100,8 @@ while [ $((ATTEMPTS--)) -gt 0 ]; do
python3 $BM/poe_run.py \
--dev="$BM_SERIAL" \
--powerup="$BM_POWERUP" \
- --powerdown="$BM_POWERDOWN"
+ --powerdown="$BM_POWERDOWN" \
+ --timeout="${BM_POE_TIMEOUT:-60}"
ret=$?
if [ $ret -eq 2 ]; then
diff --git a/.gitlab-ci/bare-metal/poe_run.py b/.gitlab-ci/bare-metal/poe_run.py
index 8abffd19977..804522bad6d 100755
--- a/.gitlab-ci/bare-metal/poe_run.py
+++ b/.gitlab-ci/bare-metal/poe_run.py
@@ -32,7 +32,7 @@ class PoERun:
def __init__(self, args):
self.powerup = args.powerup
self.powerdown = args.powerdown
- self.ser = SerialBuffer(args.dev, "results/serial-output.txt", "", 60)
+ self.ser = SerialBuffer(args.dev, "results/serial-output.txt", "", args.timeout)
def logged_system(self, cmd):
print("Running '{}'".format(cmd))
@@ -77,6 +77,8 @@ def main():
parser.add_argument('--dev', type=str, help='Serial device to monitor', required=True)
parser.add_argument('--powerup', type=str, help='shell command for rebooting', required=True)
parser.add_argument('--powerdown', type=str, help='shell command for powering off', required=True)
+ parser.add_argument('--timeout', type=int, default=60,
+ help='time in seconds to wait for activity', required=False)
args = parser.parse_args()
poe = PoERun(args)