Skip to content

Commit

Permalink
yoe-sdk-image: Use 2G RAM when ptests are enabled
Browse files Browse the repository at this point in the history
Some of ptests need really large memory so raise it to 2G in such case

Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
kraj committed Apr 26, 2021
1 parent bb4562f commit 4f7b471
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions sources/meta-yoe/recipes-core/images/yoe-sdk-image.bb
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,10 @@ IMAGE_INSTALL += "packagegroup-go-sdk-target packagegroup-core-buildessential"
IMAGE_INSTALL_remove_riscv32 = "packagegroup-go-sdk-target"

export IMAGE_BASENAME = "yoe-sdk-image"
# ptest needs a lot of memory
QB_MEM = "-m 1024"
# some ptests need a lot of memory
# We can see random failures e.g. scp test failure
# NOTE: test_scp_file (scp.ScpTest)
# ...
# scp: /tmp/test_scp_file: No space left on device

QB_MEM = "-m ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '2048', '1024', d)}"

0 comments on commit 4f7b471

Please sign in to comment.