SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
|
@ -0,0 +1,14 @@
|
|||
https://github.com/netinvent/command_runner/pull/19
|
||||
|
||||
Index: command_runner/__init__.py
|
||||
--- command_runner/__init__.py.orig
|
||||
+++ command_runner/__init__.py
|
||||
@@ -987,7 +987,7 @@ def deferred_command(command, defer_time=300):
|
||||
if os.name == "nt":
|
||||
deferrer = "ping 127.0.0.1 -n {} > NUL & ".format(defer_time)
|
||||
else:
|
||||
- deferrer = "ping 127.0.0.1 -c {} > /dev/null && ".format(defer_time)
|
||||
+ deferrer = "sleep {} && ".format(defer_time)
|
||||
|
||||
# We'll create a independent shell process that will not be attached to any stdio interface
|
||||
# Our command shall be a single string since shell=True
|
|
@ -0,0 +1,27 @@
|
|||
From 41df37eb00197567768f9e82ee9c0006f8dbcb1d Mon Sep 17 00:00:00 2001
|
||||
From: Stuart Henderson <sthen@users.noreply.github.com>
|
||||
Date: Sat, 20 Aug 2022 10:59:45 +0000
|
||||
Subject: [PATCH] use standard ping(8) arguments in tests
|
||||
|
||||
Change the command line for ping in tests.
|
||||
Traditional UNIX ping only accepts flags before the address.
|
||||
|
||||
Index: tests/test_command_runner.py
|
||||
--- tests/test_command_runner.py.orig
|
||||
+++ tests/test_command_runner.py
|
||||
@@ -54,11 +54,11 @@ if os.name == 'nt':
|
||||
PRINT_FILE_CMD = 'type {}'.format(test_filename)
|
||||
else:
|
||||
ENCODING = 'utf-8'
|
||||
- PING_CMD = ['ping', '127.0.0.1', '-c', '4']
|
||||
- PING_CMD_REDIR = 'ping 127.0.0.1 -c 4 1>&2'
|
||||
- PING_CMD_AND_FAILURE = 'ping 0.0.0.0 -c 2 1>&2; ping 127.0.0.1 -c 2'
|
||||
+ PING_CMD = ['ping', '-c', '4', '127.0.0.1']
|
||||
+ PING_CMD_REDIR = 'ping -c 4 127.0.0.1 1>&2'
|
||||
+ PING_CMD_AND_FAILURE = 'ping -c 2 0.0.0.0 1>&2; ping -c 2 127.0.0.1'
|
||||
PRINT_FILE_CMD = 'cat {}'.format(test_filename)
|
||||
- PING_FAILURE = 'ping 0.0.0.0 -c 2 1>&2'
|
||||
+ PING_FAILURE = 'ping -c 2 0.0.0.0 1>&2'
|
||||
|
||||
|
||||
ELAPSED_TIME = timestamp(datetime.now())
|
Loading…
Add table
Add a link
Reference in a new issue