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