diff options
author | Sachin Sant <sachinp@linux.vnet.ibm.com> | 2017-02-26 11:38:39 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-16 10:33:51 +0100 |
commit | 23f9e8448219a75f4f135f672308fb757db8a992 (patch) | |
tree | 18d43e9265c3257ea4839776dae0d3aa956a683e /scripts | |
parent | 3bf3fc6cbc8bede0ec7f57d2dbe0b762cdb49b7f (diff) | |
download | linux-stable-23f9e8448219a75f4f135f672308fb757db8a992.tar.gz linux-stable-23f9e8448219a75f4f135f672308fb757db8a992.tar.bz2 linux-stable-23f9e8448219a75f4f135f672308fb757db8a992.zip |
selftest/powerpc: Fix false failures for skipped tests
[ Upstream commit a6d8a21596df041f36f4c2ccc260c459e3e851f1 ]
Tests under alignment subdirectory are skipped when executed on previous
generation hardware, but harness still marks them as failed.
test: test_copy_unaligned
tags: git_version:unknown
[SKIP] Test skipped on line 26
skip: test_copy_unaligned
selftests: copy_unaligned [FAIL]
The MAGIC_SKIP_RETURN_VALUE value assigned to rc variable is retained till
the program exit which causes the test to be marked as failed.
This patch resets the value before returning to the main() routine.
With this patch the test o/p is as follows:
test: test_copy_unaligned
tags: git_version:unknown
[SKIP] Test skipped on line 26
skip: test_copy_unaligned
selftests: copy_unaligned [PASS]
Signed-off-by: Sachin Sant <sachinp@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions