HomeSoftware Heritage

Fix tests of special devices.

Description

Fix tests of special devices.

Regular files were created, as the 'mode' argument of os.mknod was missing.
However, creating devices requires root; so we can't reasonably do that in
tests.

Instead, we're using /dev/null instead of creating one.
And while we're at it, let's also use /dev/zero (which, if not handled
properly, will result in an infinite read).

Details

Provenance
vlorentzAuthored on Feb 21 2020, 3:56 PM
vlorentzPushed on Feb 24 2020, 12:19 PM
Differential Revision
D2706: Fix tests of special devices.
Parents
rDMOD4c070f98ca09: Sort from_disk.Directory entries.
Branches
Unknown
Tags
Unknown
Build Status
Buildable 10736
Build 16116: test-and-buildJenkins