[tor-commits] [tor/master] Fix SC2086 warning in test_workqueue_*.sh shell scripts
nickm at torproject.org
nickm at torproject.org
Tue Feb 19 16:31:28 UTC 2019
commit b53fee46223a425ed27f37944ac0d26569cead78
Author: rl1987 <rl1987 at sdf.lonestar.org>
Date: Fri Feb 8 16:51:49 2019 +0200
Fix SC2086 warning in test_workqueue_*.sh shell scripts
---
changes/ticket29067 | 3 +++
src/test/test_workqueue_cancel.sh | 2 +-
src/test/test_workqueue_efd.sh | 2 +-
src/test/test_workqueue_efd2.sh | 2 +-
src/test/test_workqueue_pipe.sh | 2 +-
src/test/test_workqueue_pipe2.sh | 2 +-
src/test/test_workqueue_socketpair.sh | 2 +-
7 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/changes/ticket29067 b/changes/ticket29067
new file mode 100644
index 000000000..a66064877
--- /dev/null
+++ b/changes/ticket29067
@@ -0,0 +1,3 @@
+ o Code simplification and refactoring (shell scripts):
+ - Fix test_workqueue_*.sh scripts to silence shellcheck SC2086
+ warnings. Fixes issue 29067.
diff --git a/src/test/test_workqueue_cancel.sh b/src/test/test_workqueue_cancel.sh
index f7c663171..e50b884f2 100755
--- a/src/test/test_workqueue_cancel.sh
+++ b/src/test/test_workqueue_cancel.sh
@@ -1,4 +1,4 @@
#!/bin/sh
-${builddir:-.}/src/test/test_workqueue -C 1
+"${builddir:-.}/src/test/test_workqueue" -C 1
diff --git a/src/test/test_workqueue_efd.sh b/src/test/test_workqueue_efd.sh
index 4d8939681..592841fc9 100755
--- a/src/test/test_workqueue_efd.sh
+++ b/src/test/test_workqueue_efd.sh
@@ -1,4 +1,4 @@
#!/bin/sh
-${builddir:-.}/src/test/test_workqueue \
+"${builddir:-.}/src/test/test_workqueue" \
--no-eventfd2 --no-pipe2 --no-pipe --no-socketpair
diff --git a/src/test/test_workqueue_efd2.sh b/src/test/test_workqueue_efd2.sh
index 7cfff45ff..4cf1b76cb 100755
--- a/src/test/test_workqueue_efd2.sh
+++ b/src/test/test_workqueue_efd2.sh
@@ -1,4 +1,4 @@
#!/bin/sh
-${builddir:-.}/src/test/test_workqueue \
+"${builddir:-.}/src/test/test_workqueue" \
--no-eventfd --no-pipe2 --no-pipe --no-socketpair
diff --git a/src/test/test_workqueue_pipe.sh b/src/test/test_workqueue_pipe.sh
index afcef8785..fc3ef34c6 100755
--- a/src/test/test_workqueue_pipe.sh
+++ b/src/test/test_workqueue_pipe.sh
@@ -1,4 +1,4 @@
#!/bin/sh
-${builddir:-.}/src/test/test_workqueue \
+"${builddir:-.}/src/test/test_workqueue" \
--no-eventfd2 --no-eventfd --no-pipe2 --no-socketpair
diff --git a/src/test/test_workqueue_pipe2.sh b/src/test/test_workqueue_pipe2.sh
index a20a1427e..7f19ea880 100755
--- a/src/test/test_workqueue_pipe2.sh
+++ b/src/test/test_workqueue_pipe2.sh
@@ -1,4 +1,4 @@
#!/bin/sh
-${builddir:-.}/src/test/test_workqueue \
+"${builddir:-.}/src/test/test_workqueue" \
--no-eventfd2 --no-eventfd --no-pipe --no-socketpair
diff --git a/src/test/test_workqueue_socketpair.sh b/src/test/test_workqueue_socketpair.sh
index 76af79746..1ee177644 100755
--- a/src/test/test_workqueue_socketpair.sh
+++ b/src/test/test_workqueue_socketpair.sh
@@ -1,4 +1,4 @@
#!/bin/sh
-${builddir:-.}/src/test/test_workqueue \
+"${builddir:-.}/src/test/test_workqueue" \
--no-eventfd2 --no-eventfd --no-pipe2 --no-pipe
More information about the tor-commits
mailing list