On Sat, Feb 15, 2014 at 11:57 AM, Anders Ingemann <email@example.com
> On 15 February 2014 03:51, Charles Plessy <firstname.lastname@example.org
>> 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 email@example.com
>> with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org
>> Archive: 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.