tests: use the proper %LOGDIR path on two tests
Follow-up to e7a021e1
Ref: #10818
This commit is contained in:
parent
2d59eb0035
commit
f754990acf
@ -16,12 +16,12 @@ Verify that runtests.pl accepts an -L option
|
|||||||
</name>
|
</name>
|
||||||
|
|
||||||
<command type="perl">
|
<command type="perl">
|
||||||
%SRCDIR/runtests.pl -L %SRCDIR/%LOGDIR/test1196-library.pl
|
%SRCDIR/runtests.pl -L %LOGDIR/test1196-library.pl
|
||||||
</command>
|
</command>
|
||||||
# Create a simple perl snippet that lets runtests.pl
|
# Create a simple perl snippet that lets runtests.pl
|
||||||
# exit with a code we can check.
|
# exit with a code we can check.
|
||||||
<precheck>
|
<precheck>
|
||||||
echo 'exit 123' > %SRCDIR/%LOGDIR/test1196-library.pl
|
echo 'exit 123' > %LOGDIR/test1196-library.pl
|
||||||
</precheck>
|
</precheck>
|
||||||
|
|
||||||
</client>
|
</client>
|
||||||
|
|||||||
@ -16,13 +16,13 @@ Verify that runtests.pl accepts an exclude file with the -E option
|
|||||||
</name>
|
</name>
|
||||||
|
|
||||||
<command type="perl">
|
<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>
|
</command>
|
||||||
<precheck>
|
<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>
|
</precheck>
|
||||||
<postcheck>
|
<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>
|
</postcheck>
|
||||||
|
|
||||||
</client>
|
</client>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user