cdown / rpms / util-linux

Forked from rpms/util-linux 2 years ago
Clone

Blame SOURCES/0015-tests-add-missing-ts_check_test_command-calls.patch

22a545
From 9bccbbf06a91f4e7bf5c0cddadf18265dc2e9e4b Mon Sep 17 00:00:00 2001
22a545
From: Karel Zak <kzak@redhat.com>
22a545
Date: Mon, 4 Mar 2019 16:42:30 +0100
22a545
Subject: [PATCH 15/19] tests: add missing ts_check_test_command calls
22a545
22a545
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1681062
22a545
Upstream: http://github.com/karelzak/util-linux/commit/19e00ec9e9e9c36305cf2dd163d0333e2d72c671
22a545
Signed-off-by: Karel Zak <kzak@redhat.com>
22a545
---
22a545
 tests/ts/fsck/ismounted         | 2 ++
22a545
 tests/ts/hexdump/format-strings | 1 +
22a545
 tests/ts/hexdump/highlighting   | 1 +
22a545
 tests/ts/ipcs/limits            | 1 +
22a545
 tests/ts/ipcs/limits2           | 1 +
22a545
 tests/ts/ipcs/mk-rm-msg         | 1 +
22a545
 tests/ts/ipcs/mk-rm-sem         | 1 +
22a545
 tests/ts/ipcs/mk-rm-shm         | 1 +
22a545
 tests/ts/misc/swaplabel         | 1 +
22a545
 9 files changed, 10 insertions(+)
22a545
22a545
diff --git a/tests/ts/fsck/ismounted b/tests/ts/fsck/ismounted
22a545
index 2a55907a7..7d1fe6273 100755
22a545
--- a/tests/ts/fsck/ismounted
22a545
+++ b/tests/ts/fsck/ismounted
22a545
@@ -22,6 +22,8 @@ ts_init "$*"
22a545
 
22a545
 ts_check_test_command "$TS_CMD_FDISK"
22a545
 ts_check_test_command "$TS_CMD_MOUNT"
22a545
+ts_check_test_command "$TS_CMD_UMOUNT"
22a545
+ts_check_test_command "$TS_HELPER_ISMOUNTED"
22a545
 
22a545
 ts_skip_nonroot
22a545
 ts_check_losetup
22a545
diff --git a/tests/ts/hexdump/format-strings b/tests/ts/hexdump/format-strings
22a545
index e6f9229a5..f2dc6a89b 100755
22a545
--- a/tests/ts/hexdump/format-strings
22a545
+++ b/tests/ts/hexdump/format-strings
22a545
@@ -23,6 +23,7 @@ FILES="$TS_TOPDIR/ts/hexdump/files"
22a545
 ts_init "$*"
22a545
 
22a545
 ts_check_test_command "$TS_CMD_HEXDUMP"
22a545
+ts_check_test_command "$TS_HELPER_SYSINFO"
22a545
 
22a545
 # on big endian systems some of the subtests have different expected output
22a545
 BYTE_ORDER=$($TS_HELPER_SYSINFO byte-order)
22a545
diff --git a/tests/ts/hexdump/highlighting b/tests/ts/hexdump/highlighting
22a545
index cf78f7b96..e57757978 100755
22a545
--- a/tests/ts/hexdump/highlighting
22a545
+++ b/tests/ts/hexdump/highlighting
22a545
@@ -25,6 +25,7 @@ ADDRFMT='-e "%07.7_Ax\n"'
22a545
 ts_init "$*"
22a545
 
22a545
 ts_check_test_command "$TS_CMD_HEXDUMP"
22a545
+ts_check_test_command "$TS_HELPER_SYSINFO"
22a545
 
22a545
 # on big endian systems some of the subtests have different expected output
22a545
 BYTE_ORDER=$($TS_HELPER_SYSINFO byte-order)
22a545
diff --git a/tests/ts/ipcs/limits b/tests/ts/ipcs/limits
22a545
index 7b64b3c17..671f23c77 100755
22a545
--- a/tests/ts/ipcs/limits
22a545
+++ b/tests/ts/ipcs/limits
22a545
@@ -23,6 +23,7 @@ TS_DESC="limits overflow"
22a545
 ts_init "$*"
22a545
 
22a545
 ts_check_test_command "$TS_CMD_IPCS"
22a545
+ts_check_test_command "$TS_HELPER_SYSINFO"
22a545
 
22a545
 ts_skip_nonroot
22a545
 ts_check_prog "bc"
22a545
diff --git a/tests/ts/ipcs/limits2 b/tests/ts/ipcs/limits2
22a545
index d23c41a35..77ad70f9b 100755
22a545
--- a/tests/ts/ipcs/limits2
22a545
+++ b/tests/ts/ipcs/limits2
22a545
@@ -23,6 +23,7 @@ TS_DESC="basic limits"
22a545
 ts_init "$*"
22a545
 
22a545
 ts_check_test_command "$TS_CMD_IPCS"
22a545
+ts_check_test_command "$TS_HELPER_SYSINFO"
22a545
 ts_check_prog "bc"
22a545
 
22a545
 . $TS_SELF/functions.sh
22a545
diff --git a/tests/ts/ipcs/mk-rm-msg b/tests/ts/ipcs/mk-rm-msg
22a545
index 25460e25d..de3682e87 100755
22a545
--- a/tests/ts/ipcs/mk-rm-msg
22a545
+++ b/tests/ts/ipcs/mk-rm-msg
22a545
@@ -21,6 +21,7 @@ ts_init "$*"
22a545
 ts_check_test_command "$TS_CMD_IPCS"
22a545
 ts_check_test_command "$TS_CMD_IPCMK"
22a545
 ts_check_test_command "$TS_CMD_IPCRM"
22a545
+ts_check_test_command "$TS_HELPER_SYSINFO"
22a545
 
22a545
 . $TS_SELF/functions.sh
22a545
 
22a545
diff --git a/tests/ts/ipcs/mk-rm-sem b/tests/ts/ipcs/mk-rm-sem
22a545
index 61e0cfdef..d7b505f7c 100755
22a545
--- a/tests/ts/ipcs/mk-rm-sem
22a545
+++ b/tests/ts/ipcs/mk-rm-sem
22a545
@@ -21,6 +21,7 @@ ts_init "$*"
22a545
 ts_check_test_command "$TS_CMD_IPCS"
22a545
 ts_check_test_command "$TS_CMD_IPCMK"
22a545
 ts_check_test_command "$TS_CMD_IPCRM"
22a545
+ts_check_test_command "$TS_HELPER_SYSINFO"
22a545
 
22a545
 . $TS_SELF/functions.sh
22a545
 
22a545
diff --git a/tests/ts/ipcs/mk-rm-shm b/tests/ts/ipcs/mk-rm-shm
22a545
index 838fb3f21..c21547b82 100755
22a545
--- a/tests/ts/ipcs/mk-rm-shm
22a545
+++ b/tests/ts/ipcs/mk-rm-shm
22a545
@@ -21,6 +21,7 @@ ts_init "$*"
22a545
 ts_check_test_command "$TS_CMD_IPCS"
22a545
 ts_check_test_command "$TS_CMD_IPCMK"
22a545
 ts_check_test_command "$TS_CMD_IPCRM"
22a545
+ts_check_test_command "$TS_HELPER_SYSINFO"
22a545
 
22a545
 . $TS_SELF/functions.sh
22a545
 
22a545
diff --git a/tests/ts/misc/swaplabel b/tests/ts/misc/swaplabel
22a545
index 646304508..22858b0ac 100755
22a545
--- a/tests/ts/misc/swaplabel
22a545
+++ b/tests/ts/misc/swaplabel
22a545
@@ -20,6 +20,7 @@ ts_init "$*"
22a545
 
22a545
 ts_check_test_command "$TS_CMD_MKSWAP"
22a545
 ts_check_test_command "$TS_CMD_SWAPLABEL"
22a545
+ts_check_test_command "$TS_HELPER_SYSINFO"
22a545
 
22a545
 # fallocate does not work on most file systems
22a545
 function fallocate_or_skip()
22a545
-- 
22a545
2.20.1
22a545