mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
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>
This commit is contained in:
@@ -78,9 +78,10 @@ class LtpTest(LtpTestBase):
|
||||
# copy nice log from DUT
|
||||
dst = os.path.join(self.ltptest_log_dir, "%s" % ltp_group )
|
||||
remote_src = "/opt/ltp/results/%s" % ltp_group
|
||||
(status, output) = self.target.copyFrom(remote_src, dst)
|
||||
(status, output) = self.target.copyFrom(remote_src, dst, True)
|
||||
msg = 'File could not be copied. Output: %s' % output
|
||||
self.assertEqual(status, 0, msg=msg)
|
||||
if status:
|
||||
self.target.logger.warning(msg)
|
||||
|
||||
parser = LtpParser()
|
||||
results, sections = parser.parse(dst)
|
||||
|
||||
Reference in New Issue
Block a user