[Piuparts-commits] [piuparts] 05/10: p-s: replace literal ESC (0x1b) chars with string '[ESC]'
Holger Levsen
holger at layer-acht.org
Sun Mar 5 14:55:39 UTC 2017
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch develop
in repository piuparts.
commit 22023014db932e3f7494aaa62f17e60f3bf29195
Author: Andreas Beckmann <anbe at debian.org>
Date: Fri Mar 3 01:30:26 2017 +0100
p-s: replace literal ESC (0x1b) chars with string '[ESC]'
Signed-off-by: Andreas Beckmann <anbe at debian.org>
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
debian/changelog | 3 +++
piuparts-slave.py | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 091fe73..a942650 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,9 @@ piuparts (0.76) UNRELEASED; urgency=medium
* piuparts.conf:
- Set --warn-on-install-over-symlink for tests ending before stretch.
* piuparts.conf.anbe: Add some more example sections.
+ * piuparts-slave.py:
+ - Replace literal ESC (0x1b) chars with string '[ESC]' for easier
+ copy+paste from logfiles.
* Clean up leftover /etc/piuparts/scripts/post_setup_experimental.
(Closes: #854317)
* scripts/pre_distupgrade_zz_database-server: Switch from mysql-server to
diff --git a/piuparts-slave.py b/piuparts-slave.py
index 6c3b752..394c1e0 100644
--- a/piuparts-slave.py
+++ b/piuparts-slave.py
@@ -758,7 +758,7 @@ class Section:
ret, f = run_test_with_timeout(command, MAX_WAIT_TEST_RUN)
if not f or f[-1] != '\n':
f += '\n'
- output.write(f)
+ output.write(f.replace('\033', '[ESC]'))
lastline = f.split('\n')[-2]
if ret < 0:
output.write(" *** Process KILLED - exceed maximum run time ***\n")
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git
More information about the Piuparts-commits
mailing list