Skip to content

Commit

Permalink
Clear caches to ensure determinism during testing
Browse files Browse the repository at this point in the history
  • Loading branch information
christophercrouzet committed Sep 16, 2024
1 parent 1ef7d35 commit 628ee76
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions exts/omni.warp.core/omni/warp/core/tests/test_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

import omni.kit.test

import warp as wp

TEST_DESCS = (
("test_array", "TestArray"),
("test_array_reduce", "TestArrayReduce"),
Expand Down Expand Up @@ -76,3 +78,6 @@
# Each test class needs to be defined at the module level to be found by
# the test runners.
locals().update({str(i): x for i, x in enumerate(test_clss)})

# Clear caches to ensure determinism.
wp.clear_kernel_cache()

0 comments on commit 628ee76

Please sign in to comment.