Skip to content

Commit ddd2a1a

Browse files
author
Nig3l
committed
Add base and root bindings to pre test command
1 parent dac6bcb commit ddd2a1a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/rez/package_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,8 @@ def _pre_test_commands(executor):
455455

456456
with executor.reset_globals():
457457
executor.bind("this", variant)
458+
executor.bind('root', variant.root)
459+
executor.bind('base', executor.normalize_path(package.base))
458460
executor.bind("test", RO_AttrDictWrapper(test_ns))
459461
executor.execute_code(pre_test_commands)
460462

0 commit comments

Comments
 (0)