diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-11-18 09:38:27 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-11-18 09:38:27 +0000 |
commit | 536c3711867ec947c1738f2c4b96f22e4863322d (patch) | |
tree | 697733f5cb713908dcf378e13fd15a798a906a91 /sys-apps/util-linux/files/util-linux-2.32.1-skip-oids-test-when-uuidgen-is-not-available.patch | |
parent | f65628136faa35d0c4d3b5e7332275c7b35fcd96 (diff) |
gentoo resync : 18.11.2018
Diffstat (limited to 'sys-apps/util-linux/files/util-linux-2.32.1-skip-oids-test-when-uuidgen-is-not-available.patch')
-rw-r--r-- | sys-apps/util-linux/files/util-linux-2.32.1-skip-oids-test-when-uuidgen-is-not-available.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/sys-apps/util-linux/files/util-linux-2.32.1-skip-oids-test-when-uuidgen-is-not-available.patch b/sys-apps/util-linux/files/util-linux-2.32.1-skip-oids-test-when-uuidgen-is-not-available.patch new file mode 100644 index 000000000000..743dc89e2425 --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.32.1-skip-oids-test-when-uuidgen-is-not-available.patch @@ -0,0 +1,41 @@ +From 8f93c8c71d264e90bdcecf98c9ac372bbcdc53aa Mon Sep 17 00:00:00 2001 +From: Thomas Deutschmann <whissi@gentoo.org> +Date: Sun, 11 Nov 2018 02:17:55 +0100 +Subject: [PATCH] tests: run oids test only when uuidgen tool was built + +oids test did not check if uuidgen was available. + +oids test was also calling uuidgen from PATH which could result +in wrong results if uuidgen from a previous util-linux installation +was used. + +With this commit we will check if uuidgen was built and make sure +that we only call the uuidgen binary we just built. If uuidgen is +not available we will skip this test. +--- + tests/ts/uuid/oids | 10 ++++++---- + 1 file changed, 6 insertions(+), 4 deletions(-) + +diff --git a/tests/ts/uuid/oids b/tests/ts/uuid/oids +index 3b005c5b2..77e010c1d 100755 +--- a/tests/ts/uuid/oids ++++ b/tests/ts/uuid/oids +@@ -20,12 +20,14 @@ ts_init "$*" + + : . > $TS_OUTPUT + +-uuidgen --md5 --namespace @dns --name "www.widgets.com" >> $TS_OUTPUT ++ts_check_test_command "$TS_CMD_UUIDGEN" + +-uuidgen --md5 --namespace @dns --name "www.example.com" >> $TS_OUTPUT ++$TS_CMD_UUIDGEN --md5 --namespace @dns --name "www.widgets.com" >> $TS_OUTPUT + +-uuidgen --sha1 --namespace @dns --name "www.example.com" >> $TS_OUTPUT ++$TS_CMD_UUIDGEN --md5 --namespace @dns --name "www.example.com" >> $TS_OUTPUT + +-uuidgen --sha1 --namespace @oid --hex --name "525400fc0f5e" >> $TS_OUTPUT ++$TS_CMD_UUIDGEN --sha1 --namespace @dns --name "www.example.com" >> $TS_OUTPUT ++ ++$TS_CMD_UUIDGEN --sha1 --namespace @oid --hex --name "525400fc0f5e" >> $TS_OUTPUT + + ts_finalize |