Compare commits

...
4 Commits
Author SHA1 Message Date
Dan Helfman b3f5a9d18f Fix error when configuration file contains "umask" option (#437). 2021-07-27 10:04:22 -07:00
Dan Helfman 80b33fbf8a Code style reformatting. 2021-07-27 09:39:48 -07:00
Dan HelfmanandGitHub 5389ff6160 Merge pull request #41 from mkszuba/tests_no_xxd
tests/integration/test_execute: use plain Python rather than xxd
2021-07-27 09:39:02 -07:00
Marek Szuba e8b8d86592 tests/integration/test_execute: use plain Python rather than xxd
Removes this test's dependencies on vim and /dev/urandom.

Signed-off-by: Marek Szuba <marek.szuba@cern.ch>
2021-07-27 13:50:16 +01:00
4 changed files with 15 additions and 4 deletions
+4
View File
@@ -1,3 +1,7 @@
1.5.17
* #437: Fix error when configuration file contains "umask" option.
* Remove test dependency on vim and /dev/urandom.
1.5.16
* #379: Suppress console output in sample crontab and systemd service files.
* #407: Fix syslog logging on FreeBSD.
+2 -2
View File
@@ -292,7 +292,7 @@ properties:
$borg_base_directory/.config/borg/keys
example: /path/to/base/config/keys
umask:
type: string
type: integer
description: Umask to be used for borg create. Defaults to 0077.
example: 0077
lock_wait:
@@ -787,7 +787,7 @@ properties:
example:
https://cronhub.io/start/1f5e3410-254c-11e8-b61d-55875966d01
umask:
type: scalar
type: integer
description: |
Umask used when executing hooks. Defaults to the umask that
borgmatic is run with.
+1 -1
View File
@@ -1,6 +1,6 @@
from setuptools import find_packages, setup
VERSION = '1.5.16'
VERSION = '1.5.17'
setup(
+8 -1
View File
@@ -1,5 +1,6 @@
import logging
import subprocess
import sys
import pytest
from flexmock import flexmock
@@ -134,7 +135,13 @@ def test_log_outputs_vents_other_processes_when_one_exits():
flexmock(module).should_receive('command_for_process').and_return('grep')
process = subprocess.Popen(
['xxd', '-l', '40000', '-p', '/dev/urandom'], stdout=subprocess.PIPE, stderr=subprocess.PIPE
[
sys.executable,
'-c',
"import random, string; print(''.join(random.choice(string.ascii_letters) for _ in range(40000)))",
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
other_process = subprocess.Popen(
['true'], stdin=process.stdout, stdout=subprocess.PIPE, stderr=subprocess.STDOUT