]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
selftest/spdx: Fix for SPDX_VERSION addition
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 12 Jun 2024 06:53:56 +0000 (07:53 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 12 Jun 2024 15:15:40 +0000 (16:15 +0100)
Update the test for the addition of SPDX_VERSION to the deploy path.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/spdx.py

index 05fc4e390b28a89088a66597401086a45db8bab1..7685a81e7fbf5f90a60cdd449be7edc55cef4287 100644 (file)
@@ -25,10 +25,11 @@ INHERIT += "create-spdx"
 
         deploy_dir = get_bb_var("DEPLOY_DIR")
         machine_var = get_bb_var("MACHINE")
+        spdx_version = get_bb_var("SPDX_VERSION")
         # qemux86-64 creates the directory qemux86_64
         machine_dir = machine_var.replace("-", "_")
 
-        full_file_path = os.path.join(deploy_dir, "spdx", machine_dir, high_level_dir, spdx_file)
+        full_file_path = os.path.join(deploy_dir, "spdx", spdx_version, machine_dir, high_level_dir, spdx_file)
 
         try:
             os.remove(full_file_path)