summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2024-06-12 07:53:56 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-06-12 16:16:03 +0100
commit068ca2f2ebe8890d338d3ab6398ad927db898f4a (patch)
treea86ecd7ae101bfe1f0e456c94962e9ad4cc99416 /meta
parent717a427807335825e0ae40a0684fc2a0b6bd9fcc (diff)
downloadpoky-068ca2f2ebe8890d338d3ab6398ad927db898f4a.tar.gz
selftest/spdx: Fix for SPDX_VERSION addition
Update the test for the addition of SPDX_VERSION to the deploy path. (From OE-Core rev: 055e8c21908127722abad9e992d6408d8697a119) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/selftest/cases/spdx.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/cases/spdx.py b/meta/lib/oeqa/selftest/cases/spdx.py
index 05fc4e390b..7685a81e7f 100644
--- a/meta/lib/oeqa/selftest/cases/spdx.py
+++ b/meta/lib/oeqa/selftest/cases/spdx.py
@@ -25,10 +25,11 @@ INHERIT += "create-spdx"
25 25
26 deploy_dir = get_bb_var("DEPLOY_DIR") 26 deploy_dir = get_bb_var("DEPLOY_DIR")
27 machine_var = get_bb_var("MACHINE") 27 machine_var = get_bb_var("MACHINE")
28 spdx_version = get_bb_var("SPDX_VERSION")
28 # qemux86-64 creates the directory qemux86_64 29 # qemux86-64 creates the directory qemux86_64
29 machine_dir = machine_var.replace("-", "_") 30 machine_dir = machine_var.replace("-", "_")
30 31
31 full_file_path = os.path.join(deploy_dir, "spdx", machine_dir, high_level_dir, spdx_file) 32 full_file_path = os.path.join(deploy_dir, "spdx", spdx_version, machine_dir, high_level_dir, spdx_file)
32 33
33 try: 34 try:
34 os.remove(full_file_path) 35 os.remove(full_file_path)