dcavalca / rpms / util-linux

Forked from rpms/util-linux 2 years ago
Clone
fe1ca8
From 0c57e5fedce0e627debda3258e2203842b427572 Mon Sep 17 00:00:00 2001
fe1ca8
From: Karel Zak <kzak@redhat.com>
fe1ca8
Date: Tue, 11 Dec 2018 11:44:48 +0100
fe1ca8
Subject: [PATCH] tests: check for tar and {b,g}zip
fe1ca8
fe1ca8
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1681062
fe1ca8
Upstream: http://github.com/karelzak/util-linux/commit/9e07672bb9989c88f6a7d8b8ab23158701fb4eec
fe1ca8
Signed-off-by: Karel Zak <kzak@redhat.com>
fe1ca8
---
fe1ca8
 tests/ts/lscpu/lscpu | 2 ++
fe1ca8
 tests/ts/lsmem/lsmem | 2 ++
fe1ca8
 2 files changed, 4 insertions(+)
fe1ca8
fe1ca8
diff --git a/tests/ts/lscpu/lscpu b/tests/ts/lscpu/lscpu
fe1ca8
index 70fbce9f3..ccf271149 100755
fe1ca8
--- a/tests/ts/lscpu/lscpu
fe1ca8
+++ b/tests/ts/lscpu/lscpu
fe1ca8
@@ -22,6 +22,8 @@ TS_TOPDIR="${0%/*}/../.."
fe1ca8
 
fe1ca8
 ts_init "$*"
fe1ca8
 
fe1ca8
+ts_check_prog "tar"
fe1ca8
+ts_check_prog "gzip"
fe1ca8
 ts_check_test_command "$TS_CMD_LSCPU"
fe1ca8
 
fe1ca8
 for dump in $(ls $TS_SELF/dumps/*.tar.gz | sort); do
fe1ca8
diff --git a/tests/ts/lsmem/lsmem b/tests/ts/lsmem/lsmem
fe1ca8
index f1a643f85..bedf4143f 100755
fe1ca8
--- a/tests/ts/lsmem/lsmem
fe1ca8
+++ b/tests/ts/lsmem/lsmem
fe1ca8
@@ -21,6 +21,8 @@ TS_TOPDIR="${0%/*}/../.."
fe1ca8
 ts_init "$*"
fe1ca8
 
fe1ca8
 ts_check_test_command "$TS_CMD_LSMEM"
fe1ca8
+ts_check_prog "tar"
fe1ca8
+ts_check_prog "bzip2"
fe1ca8
 
fe1ca8
 LSCOLUMNS="RANGE,SIZE,STATE,REMOVABLE,BLOCK,NODE"
fe1ca8
 
fe1ca8
-- 
fe1ca8
2.20.1
fe1ca8