cedricduriau / Cryptomatte

Cryptomatte Nuke plugin, sample images, and specification
BSD 3-Clause "New" or "Revised" License
6 stars 1 forks source link

Failed test on darwin #60

Closed cedricduriau closed 2 years ago

cedricduriau commented 2 years ago

When running the test suite on darwin, on test fails related to the path mapping of the temp directory of the platform. It is currently being assumed all systems with / paths have Temp: mapped to /tmp which is not true for darwin.

Platform:

➜  Cryptomatte git:(master) uname -smpr
Darwin 20.5.0 x86_64 i386

Temp dir:

➜  Cryptomatte git:(60-fixtest) echo $TMPDIR
/var/folders/w5/dz02cb893hq2tmchp28r44940000gn/T/

Test run:

Lua> dofile("/Users/cduriau/repo/personal/Cryptomatte/fusion/Modules/Lua/test_cryptomatte_utilities.lua")
collectings test(s) ...
detected 18 test(s) ...
running tests ...
[  6%] cryptomatte_test__format_log ...                      [OK]
[ 11%] cryptomatte_test__get_absolute_path ...               [FAILED]
...omatte/fusion/Modules/Lua/test_cryptomatte_utilities.lua:96: stack traceback:
    ...omatte/fusion/Modules/Lua/test_cryptomatte_utilities.lua:96: in function 'assert_equal'
    ...omatte/fusion/Modules/Lua/test_cryptomatte_utilities.lua:196: in function <...omatte/fusion/Modules/Lua/test_cryptomatte_utilities.lua:173>
    [C]: in function 'pcall'
    ...omatte/fusion/Modules/Lua/test_cryptomatte_utilities.lua:67: in function 'run_tests'
    ...omatte/fusion/Modules/Lua/test_cryptomatte_utilities.lua:492: in main chunk
    [C]: in function 'dofile'
    [string "???"]:1: in main chunk
assertion failed: /var/folders/w5/dz02cb893hq2tmchp28r44940000gn/T/test.exr != /tmp/test.exr
[ 17%] cryptomatte_test__get_absolute_position ...           [OK]
[ 22%] cryptomatte_test__get_channel_hierarchy ...           [OK]
[ 28%] cryptomatte_test__get_log_level ...                   [OK]
[ 33%] cryptomatte_test__hex_to_float ...                    [OK]
[ 39%] cryptomatte_test__is_position_in_rect ...             [OK]
[ 44%] cryptomatte_test__solve_channel_name ...              [OK]
[ 50%] cryptomatte_test__string_ends_with ...                [OK]
[ 56%] cryptomatte_test__string_split ...                    [OK]
[ 61%] cryptomatte_test__string_starts_with ...              [OK]
[ 67%] cryptomatte_test_decode_manifest ...                  [OK]
[ 72%] cryptomatte_test_get_cryptomatte_metadata ...         [OK]
[ 78%] cryptomatte_test_get_matte_names ...                  [OK]
[ 83%] cryptomatte_test_log_error ...                        [OK]
[ 89%] cryptomatte_test_log_info ...                         [OK]
[ 94%] cryptomatte_test_log_warning ...                      [OK]
[100%] cryptomatte_test_read_manifest_file ...               [OK]