Skip to content

Commit

Permalink
tests: use the proper %LOGDIR path on two tests
Browse files Browse the repository at this point in the history
Follow-up to e7a021e

Ref: #10818
  • Loading branch information
dfandrich committed Mar 31, 2023
1 parent 2d59eb0 commit f754990
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/data/test1169
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ Verify that runtests.pl accepts an -L option
</name>

<command type="perl">
%SRCDIR/runtests.pl -L %SRCDIR/%LOGDIR/test1196-library.pl
%SRCDIR/runtests.pl -L %LOGDIR/test1196-library.pl
</command>
# Create a simple perl snippet that lets runtests.pl
# exit with a code we can check.
<precheck>
echo 'exit 123' > %SRCDIR/%LOGDIR/test1196-library.pl
echo 'exit 123' > %LOGDIR/test1196-library.pl
</precheck>

</client>
Expand Down
6 changes: 3 additions & 3 deletions tests/data/test1182
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ Verify that runtests.pl accepts an exclude file with the -E option
</name>

<command type="perl">
%SRCDIR/runtests.pl -o TESTDIR=%SRCDIR/%LOGDIR/data -o LOGDIR=%SRCDIR/%LOGDIR/log -E %SRCDIR/%LOGDIR/test%TESTNUMBER-exclude-file 1
%SRCDIR/runtests.pl -o TESTDIR=%LOGDIR/data -o LOGDIR=%LOGDIR/log -E %LOGDIR/test%TESTNUMBER-exclude-file 1
</command>
<precheck>
mkdir %SRCDIR/%LOGDIR/data ; mkdir %SRCDIR/%LOGDIR/log; cp %SRCDIR/data/test1 %SRCDIR/%LOGDIR/data; echo 'test:1:Test should not run for unit test %TESTNUMBER' > %SRCDIR/%LOGDIR/test%TESTNUMBER-exclude-file
mkdir %LOGDIR/data ; mkdir %LOGDIR/log; cp %SRCDIR/data/test1 %LOGDIR/data; echo 'test:1:Test should not run for unit test %TESTNUMBER' > %LOGDIR/test%TESTNUMBER-exclude-file
</precheck>
<postcheck>
grep -q "Test should not run for unit test %TESTNUMBER" %SRCDIR/%LOGDIR/stdout%TESTNUMBER
grep -q "Test should not run for unit test %TESTNUMBER" %LOGDIR/stdout%TESTNUMBER
</postcheck>

</client>
Expand Down

0 comments on commit f754990

Please sign in to comment.