tests: ts_device_init remove useless error handling

Don't know why we should deinit the empty string.
This patch prepares further refactoring or error handling.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
tests: fix "KNOWN FAILED" for subtests

It didn't worked for tests with subtests.

Here we consolidate both cases which fixes the issue by the way. This
is basically a rewrite of 7641ccec.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
tests: fix hexdump, add ts_finalize

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
tests, add missing output for hexdump

One file was missing and one was too much.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
tests: add function ts_check_losetup

Unfortunately losetup -f does not return an error nowadays.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
tests: use ts_check_losetup in losetup test

In losetup test we have to handle the special case that ts_check_losetup
requires a working losetup binary.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
tests: ts_device_init requires loop support

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
tests: some more tests need loop support

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
tests: cleanup ts_scsi_debug_init

Sort out global and local vars. Now we set TS_DEVICE globally
to be use later.
Skip really quiet if modprobe fails.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
tests: ts_scsi_debug_init must not run in a subshell

ts_skip and ts_die won't work from subshell. Now we simply use
TS_DEVICE which is globally set in that function.

I've made sure that we never change TS_DEVICE variable after
we've got it. So we could use it again for cleanup on exit in
ts_{finalize,die,skip} functions.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
tests, don't write TS_DEVICE to stdout anymore
tests: introduce TS_CMD_UUIDGEN (never use installed one)

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
travis-ci: minor cleanup and speedup

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
travis-ci: enable root checks

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
tests: fix hexdump for big endian

For now endianess dependent subtests have undefined output on
BE systems until sombody re-checks this and provides expected
output files with .BE suffix.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
tests: ipcs/limits2 is known to fail

See github issue #51, comment 2
https://github.com/karelzak/util-linux/issues/51

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
tests: script/race would work with variable loop count

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
tests, script/race is known to fail

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
losetup: fix -f on systems without /dev/loop-control

Reported-by: Ruediger Meier <sweet_f_a@gmx.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
Merge branch 'tests-known' of https://github.com/rudimeier/util-linux

* 'tests-known' of https://github.com/rudimeier/util-linux:
  tests, script/race is known to fail
  tests: script/race would work with variable loop count
  tests: ipcs/limits2 is known to fail
  tests: fix hexdump for big endian
  tests, add missing output for hexdump
  tests: fix hexdump, add ts_finalize
  tests: fix "KNOWN FAILED" for subtests