Merge lp:~jelmer/brz/symlink-dev-null into lp:brz

Proposed by Jelmer Vernooij
Status: Merged
Approved by: Jelmer Vernooij
Approved revision: no longer in the source branch.
Merge reported by: The Breezy Bot
Merged at revision: not available
Proposed branch: lp:~jelmer/brz/symlink-dev-null
Merge into: lp:brz
Diff against target: 27 lines (+5/-1)
2 files modified
breezy/tests/test_osutils.py (+3/-1)
doc/en/release-notes/brz-3.0.txt (+2/-0)
To merge this branch: bzr merge lp:~jelmer/brz/symlink-dev-null
Reviewer Review Type Date Requested Status
Martin Packman Approve
Review via email: mp+355166@code.launchpad.net

Commit message

Allow /dev/null to be a symlink.

Description of the change

Allow /dev/null to be a symlink.

Necessary on Illumos.

To post a comment you must log in.
Revision history for this message
Martin Packman (gz) wrote :

Seems perfectly reasonable.

review: Approve
Revision history for this message
The Breezy Bot (the-breezy-bot) wrote :

Running landing tests failed
https://ci.breezy-vcs.org/job/land-brz/494/

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'breezy/tests/test_osutils.py'
--- breezy/tests/test_osutils.py 2018-09-11 07:31:44 +0000
+++ breezy/tests/test_osutils.py 2018-09-18 02:09:18 +0000
@@ -313,7 +313,9 @@
313 if e.errno not in (errno.ENOENT,):313 if e.errno not in (errno.ENOENT,):
314 raise314 raise
315 else:315 else:
316 self.assertEqual('chardev', osutils.file_kind('/dev/null'))316 self.assertEqual(
317 'chardev',
318 osutils.file_kind(os.path.realpath('/dev/null')))
317319
318 mkfifo = getattr(os, 'mkfifo', None)320 mkfifo = getattr(os, 'mkfifo', None)
319 if mkfifo:321 if mkfifo:
320322
=== modified file 'doc/en/release-notes/brz-3.0.txt'
--- doc/en/release-notes/brz-3.0.txt 2018-09-16 09:45:55 +0000
+++ doc/en/release-notes/brz-3.0.txt 2018-09-18 02:09:18 +0000
@@ -274,6 +274,8 @@
274Testing274Testing
275*******275*******
276276
277 * Allow /dev/null to be a symlink to a chardev. (Igo Pashev, #832257)
278
277 * A test isolation issue in ``breezy.tests.test_ui`` was fixed,279 * A test isolation issue in ``breezy.tests.test_ui`` was fixed,
278 which caused ``output_encoding = iso-8859-1`` to be added to the280 which caused ``output_encoding = iso-8859-1`` to be added to the
279 users' bazaar.conf. (Jelmer Vernooij)281 users' bazaar.conf. (Jelmer Vernooij)

Subscribers

People subscribed via source and target branches