[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#923696: lintian: Bad examples in Lintian::Tutorial::TestSuite



Hi Xavier,

On Sun, Mar 3, 2019 at 2:27 PM Xavier Guimard <yadd@debian.org> wrote:

To launch part of the tests, Lintian::Tutorial::Testsuite proposes to
use either:

  $ debian/rules runtests _onlyrun_=tag:$tag
  $ t/bin/runtests --dump-logs -k t debian/test-out tag:$tag

None of these examples work (all test launched or error). Looking at
source code, I ran with success:

  $ t/bin/runtests --unattended --work-dir=debian/test-out --onlyrun tag:$tag t

Same for other examples ($check,...)

Thanks for reporting this. I saw your note on #debian-qa, but you were gone when I got there. I will work on the documentation very soon.

In most cases, you should be able to drop the work-dir and and the test base 't', like so

t/bin/runtests --_onlyrun_=tag:$tag

-k will run all selected tests even if the code quality scripts or the internal harness tests have failed.

--unattended will never prompt for user input, for example to offer to re-calibrate tests when new tags appeared or some disappeared.


Reply to: