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

Re: Problem with regression tests in cloud-init 0.7.4.






On Sat, Feb 15, 2014 at 11:57 AM, Anders Ingemann <anders@ingemann.de> wrote:
>
> On 15 February 2014 03:51, Charles Plessy <plessy@debian.org> wrote:
>>
>> Le Fri, Feb 14, 2014 at 04:18:23PM +0100, Juerg Haefliger a écrit :
>> >
>> > The SmartOS datasource class is checking for the existance of /dev/ttyS1
>> > which is not present in a build chroot.
>>
>> Thanks !  Do you know if there is a way to provide it or emulate it in the
>> chroot ?
>>
>> Have a nice week-end,
>>
>> --
>> Charles Plessy
>> Tsurumi, Kanagawa, Japan
>>
>>
>> --
>> To UNSUBSCRIBE, email to debian-cloud-request@lists.debian.org
>> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>> Archive: 20140215025115.GA21831@falafel.plessy.net">http://lists.debian.org/20140215025115.GA21831@falafel.plessy.net
>>
> Hi Charles
>
> If I have understood your conversation correctly you can just bind it from your own root. `mount --bind /dev /target/root/dev`

That's possible but I'm not sure if it's doable in a pbuilder env. In fact it shouldn't be required. I claim that the unittest is broken if it doesn't pass in a package build env. I guess the question is if we should run unit tests when building a package. If the answer is yes, then we need to fix the unit test rather than mocking with the build env.

...Juerg



Reply to: