Skip to content

Commit

Permalink
fix unexpected behavior while using runblacklist in itests
Browse files Browse the repository at this point in the history
If you would like to use the runblacklist bnd instruction in an
integration test it will not work as expected.

In my current test case it is not used at all.

This is caused because an included file overrides this instruction.

IMHO it would be better to use the "Merged Instructions" feature and use
a postfix in the included file. This way you can use the non postfixed
instruction as usual.

See: https://bnd.bndtools.org/chapters/820-instructions.html#merged-instructions

Signed-off-by: Markus Rathgeb <maggu2810@gmail.com>
  • Loading branch information
maggu2810 committed Nov 17, 2019
1 parent 7ba7ee2 commit 6d942c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion itests/itest-common.bndrun
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-include: itest-include.bndrun

# If we would like to use a storage at all, we will use the "volatile" storage.
-runblacklist: \
-runblacklist.itest-common: \
bnd.identity;id='org.openhab.core.storage.json',\
bnd.identity;id='org.openhab.core.storage.mapdb'

0 comments on commit 6d942c9

Please sign in to comment.