diff options
| author | Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> | 2024-09-20 11:48:44 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-09-20 16:00:27 +0100 |
| commit | a5eb89bdc9fc3531a179ddee495769724f8898fd (patch) | |
| tree | 4d700bf67777e27152aca1325fabc746341129ec | |
| parent | f8907dc10c2e4c2ecbdb2d719a5ae3425760f260 (diff) | |
| download | poky-a5eb89bdc9fc3531a179ddee495769724f8898fd.tar.gz | |
oeqa/postactions: Fix archive retrieval from target
A previous patch broke archive retrieval because of an undeclared
variable. Declare the archive_name variable as expected.
(From OE-Core rev: 0d0f3541552b073f3536176e2caf847bec24548d)
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Reported-by: Richard Purdie <richard.purdie@linuxfoundation.org>
CC: Alexis Lothoré <alexis.lothore@bootlin.com>
CC: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/lib/oeqa/utils/postactions.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/lib/oeqa/utils/postactions.py b/meta/lib/oeqa/utils/postactions.py index d5080523aa..8f787838b9 100644 --- a/meta/lib/oeqa/utils/postactions.py +++ b/meta/lib/oeqa/utils/postactions.py | |||
| @@ -68,6 +68,7 @@ def list_and_fetch_failed_tests_artifacts(d, tc, artifacts_list, outputdir): | |||
| 68 | (status, output) = tc.target.run(cmd, raw = True) | 68 | (status, output) = tc.target.run(cmd, raw = True) |
| 69 | if status != 0 or not output: | 69 | if status != 0 or not output: |
| 70 | raise Exception("Error while fetching compressed artifacts") | 70 | raise Exception("Error while fetching compressed artifacts") |
| 71 | archive_name = os.path.join(outputdir, "tests_artifacts.tar.gz") | ||
| 71 | with open(archive_name, "wb") as f: | 72 | with open(archive_name, "wb") as f: |
| 72 | f.write(output) | 73 | f.write(output) |
| 73 | except Exception as e: | 74 | except Exception as e: |
