Skip to content

Commit

Permalink
[Tizen] Exclude *.map file from test runner ISO (project-chip#29072)
Browse files Browse the repository at this point in the history
  • Loading branch information
arkq authored and abpoth committed Sep 12, 2023
1 parent 62ac2b4 commit 9f1386e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/test_driver/tizen/chip_tests/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ tizen_qemu_mkisofs("chip-tests-runner") {
# rebuild of the ISO image, so the test will be run with old
# binaries.
assets_non_tracked = [ rebase_path("${root_build_dir}/tests") ]
assets_non_tracked_exclude_globs = [ "*.map" ]
}

tizen_qemu_run("chip-tests") {
Expand Down
16 changes: 16 additions & 0 deletions third_party/tizen/tizen_sdk.gni
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,26 @@ template("tizen_qemu_mkisofs") {
"-input-charset=default",
"-VCHIP", # Volume ID = CHIP
"-JRU", # Joliet + Rock Ridge with untranslated filenames
]

# Exclude files from the ISO image which might otherwise be included
# by non-tracked assets in case of adding entire directory. This will
# not exclude files added explicitly.
if (defined(invoker.assets_non_tracked_exclude_globs)) {
foreach(glob, invoker.assets_non_tracked_exclude_globs) {
args += [
"-m",
glob,
]
}
}

args += [
"-o",
rebase_path(image_file),
rebase_path(invoker.runner),
]

if (defined(invoker.assets)) {
args += invoker.assets
inputs += invoker.assets
Expand Down

0 comments on commit 9f1386e

Please sign in to comment.