[lxc-devel] [lxd/master] tests: Deal with missing ttyS0/ttyS1 (on s390x)

stgraber on Github lxc-bot at linuxcontainers.org
Fri Nov 17 22:29:16 UTC 2017


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 354 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20171117/ff0a735a/attachment.bin>
-------------- next part --------------
From 8beeaff4a98f2c64c3b1b6ab9287cf7c0f0723a5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Fri, 17 Nov 2017 17:28:36 -0500
Subject: [PATCH] tests: Deal with missing ttyS0/ttyS1 (on s390x)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 test/suites/config.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/test/suites/config.sh b/test/suites/config.sh
index 5097bc133..5cce313cf 100644
--- a/test/suites/config.sh
+++ b/test/suites/config.sh
@@ -25,6 +25,11 @@ dounixdevtest() {
 }
 
 testunixdevs() {
+  if [ ! -e /dev/ttyS0 ] || [ ! -e /dev/ttyS1 ]; then
+     echo "==> SKIP: /dev/ttyS0 or /dev/ttyS1 are missing"
+     return
+  fi
+
   echo "Testing passing char device /dev/ttyS0"
   dounixdevtest path=/dev/ttyS0
 


More information about the lxc-devel mailing list