Skip to content

Commit 2981239

Browse files
committed
We should rely on given input arguments when executing the bat because we may get into troubles as soon as we use different shells or we don't execute the script being in the same directory!
1 parent 49b9aae commit 2981239

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples_tests/22.RaytracedAO/test.bat

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@echo off
22

33
set pathtracer="%~dp0/bin/raytracedao.exe"
4+
set scenesInput="%~dp0/test_scenes.txt"
45

56
pushd bin
67
if NOT EXIST %pathtracer% (
@@ -10,7 +11,7 @@ if NOT EXIST %pathtracer% (
1011
)
1112
popd
1213

13-
for /f "tokens=*" %%s in ('findstr /v /c:";" test_scenes.txt') do (
14+
for /f "tokens=*" %%s in ('findstr /v /c:";" %scenesInput%') do (
1415
REM echo %%s
1516
Call :render_and_denoise %%s
1617
)

0 commit comments

Comments
 (0)