svn commit: r350512 - head/tests/sys/kern
Enji Cooper
yaneurabeya at gmail.com
Thu Aug 8 09:47:01 UTC 2019
> On Aug 7, 2019, at 2:04 PM, Li-Wen Hsu <lwhsu at FreeBSD.org> wrote:
>
> On Thu, Aug 8, 2019 at 4:27 AM Mark Johnston <markj at freebsd.org <mailto:markj at freebsd.org>> wrote:
>>
>> On Thu, Aug 01, 2019 at 06:19:16PM +0000, Li-Wen Hsu wrote:
>>> Author: lwhsu
>>> Date: Thu Aug 1 18:19:16 2019
>>> New Revision: 350512
>>> URL: https://svnweb.freebsd.org/changeset/base/350512
>>>
>>> Log:
>>> Only skip test cases sometimes failing in CI when they are running in CI
>>>
>>> Suggested by: jhb
>>> Sponsored by: The FreeBSD Foundation
>>
>> This seems to break running the tests manually; atf dies because the
>> "ci" variable is not defined. I have to use an invocation like this to
>> avoid that:
>>
>> $ kyua -v test_suites.FreeBSD.ci=false test ptrace_test
>>
>> I suspect that share/mk/suite.test.mk needs to be augmented somehow to
>> set this variable to "false" by default, so that the CI infrastructure
>> can override that.
>
> Thanks for catching this! I feel that the better approach is using
> function that gets this variable with default value, for keeping
> things simple.
This is the right API to use:
atf_tc_get_config_var_as_bool_wd(tc, variable_name, default_value);
Just set the default to `false`.
HTH,
-Enji
More information about the svn-src-all
mailing list