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

Bug#809442: autopkgtest: Add a way to run the same test script in multiple environments



Hello Raphael,

Raphael Hertzog [2015-12-31  9:37 +0100]:
> Except that I run a shell script where I execute python scripts and I just
> want to ensure that they work... in my case /usr/bin/django-admin has some magical
> code to figure out whether python3 is available or not and run the right
> script with the right interpreter. So would something like this be
> accepted?
> 
>     Test-Command: debian/tests/django-admin
>     Depends: python-django
> 
>     Test-Command: debian/tests/django-admin
>     Depends: python3-django

Yes, that is okay, the only issue is that it looks a bit confusing in
the logs (as it's the same command). But their identifiers will be
"command1" and "command2", so you can still tell them apart.

> You might also want to improve the description of the Test-Command
> field in README.package-tests to make this use-case more explicit, I
> mainly skipped it because it was advertised to run pre-existing test
> scripts from upstream and such.

Sure, I'll do that. I'll keep that bug open for improving the
documentation then.

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)



Reply to: