From 12600e8bbf0b4795791954ab79ca4525b895a83d Mon Sep 17 00:00:00 2001 From: Christian Ehrhardt Date: Fri, 12 Aug 2016 12:49:25 +0200 Subject: d/t/test-initscripts fix false positive in adt Due to recent upgrades some commands of the reset function can fail if the service wasn't loaded before. But in that case no reset has to be done, so make it non fatal by adding a ||/bin/true Change-Id: I1da6bf315eefc9a4348c8dbae09d534a8fab9355 Signed-off-by: Christian Ehrhardt --- debian/tests/test-initscripts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'debian/tests/test-initscripts') diff --git a/debian/tests/test-initscripts b/debian/tests/test-initscripts index f465d6d6..069c57b8 100644 --- a/debian/tests/test-initscripts +++ b/debian/tests/test-initscripts @@ -88,8 +88,8 @@ resetservice() { echo 3 > /proc/sys/vm/drop_caches # stopping and resetting Service - systemctl stop dpdk.service - systemctl reset-failed dpdk.service + systemctl stop dpdk.service || /bin/true + systemctl reset-failed dpdk.service || /bin/true echo "Unmounting all potential hugetlbfs mounts" awk '/hugetlbfs/ {print $2}' /proc/mounts | while read hugetlbmount; do -- cgit 1.2.3-korg