diff options
author | Matthew <matthew.zeng@windriver.com> | 2020-08-05 14:51:33 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-08-06 15:12:39 +0100 |
commit | b6b6a39ee840bbf2c78cb2196d8fbb6e231d1c48 (patch) | |
tree | 7a61f1e0a6c193af19bae94d589231bd8af8de36 /meta/lib/oeqa/runtime | |
parent | 1beb67e4dfeeeb7434de56b14a4ef6748ac3ce0b (diff) | |
download | poky-b6b6a39ee840bbf2c78cb2196d8fbb6e231d1c48.tar.gz |
ltp: make copyFrom scp command non-fatal
[YOCTO #13802]
Make the scp failure non-fatal so the ltp tests continue to run and
the rest of the logs will be available to see afterwards.
(From OE-Core rev: 0f7d093038274f4f21f6cca39a96aac4f6c32ee3)
Signed-off-by: Mingde (Matthew) Zeng <matthew.zeng@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime')
-rw-r--r-- | meta/lib/oeqa/runtime/cases/ltp.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/lib/oeqa/runtime/cases/ltp.py b/meta/lib/oeqa/runtime/cases/ltp.py index 6dc5ef22ad..a66d5d13d7 100644 --- a/meta/lib/oeqa/runtime/cases/ltp.py +++ b/meta/lib/oeqa/runtime/cases/ltp.py | |||
@@ -78,9 +78,10 @@ class LtpTest(LtpTestBase): | |||
78 | # copy nice log from DUT | 78 | # copy nice log from DUT |
79 | dst = os.path.join(self.ltptest_log_dir, "%s" % ltp_group ) | 79 | dst = os.path.join(self.ltptest_log_dir, "%s" % ltp_group ) |
80 | remote_src = "/opt/ltp/results/%s" % ltp_group | 80 | remote_src = "/opt/ltp/results/%s" % ltp_group |
81 | (status, output) = self.target.copyFrom(remote_src, dst) | 81 | (status, output) = self.target.copyFrom(remote_src, dst, True) |
82 | msg = 'File could not be copied. Output: %s' % output | 82 | msg = 'File could not be copied. Output: %s' % output |
83 | self.assertEqual(status, 0, msg=msg) | 83 | if status: |
84 | self.target.logger.warning(msg) | ||
84 | 85 | ||
85 | parser = LtpParser() | 86 | parser = LtpParser() |
86 | results, sections = parser.parse(dst) | 87 | results, sections = parser.parse(dst) |