On Sat, Feb 15, 2014 at 11:57 AM, Anders Ingemann <[email protected]> wrote: > > On 15 February 2014 03:51, Charles Plessy <[email protected]> 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 [email protected] >> with a subject of "unsubscribe". Trouble? Contact [email protected] >> Archive: http://lists.debian.org/[email protected] >> > 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
