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