aboutsummaryrefslogtreecommitdiff
path: root/src/arm
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-04-27 23:29:48 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2021-04-28 10:25:39 +0200
commit1b87a306f0ec3da8bdb1907e2b4efb9e1b3cb9bd (patch)
treeb2c2e39f0815220bc8f23af2c97dbe4d4612ad0e /src/arm
parent5e347ac9df8b49503a1fdfa38707a99a6b2b3b0c (diff)
downloadgnunet-1b87a306f0ec3da8bdb1907e2b4efb9e1b3cb9bd.tar.gz
gnunet-1b87a306f0ec3da8bdb1907e2b4efb9e1b3cb9bd.zip
- fix misc typos
Diffstat (limited to 'src/arm')
-rw-r--r--src/arm/arm.conf.in2
-rw-r--r--src/arm/test_gnunet_arm.py.in20
2 files changed, 11 insertions, 11 deletions
diff --git a/src/arm/arm.conf.in b/src/arm/arm.conf.in
index 383d578d5..8015e0e15 100644
--- a/src/arm/arm.conf.in
+++ b/src/arm/arm.conf.in
@@ -33,7 +33,7 @@ OPTIONS = -l $GNUNET_CACHE_HOME/gnunet-%Y-%m-%d.log
33# If set to YES, ARM will only start services that are marked as 33# If set to YES, ARM will only start services that are marked as
34# per-user services (and we'll expect a system user to run ARM to 34# per-user services (and we'll expect a system user to run ARM to
35# provide system-level services). Per-user services enable 35# provide system-level services). Per-user services enable
36# better personalization and priviledge separation and in particular 36# better personalization and privilege separation and in particular
37# ensures that personal data is stored under $HOME, which might 37# ensures that personal data is stored under $HOME, which might
38# be important in a multi-user system (or if $HOME is encrypted 38# be important in a multi-user system (or if $HOME is encrypted
39# and /var/ is not). 39# and /var/ is not).
diff --git a/src/arm/test_gnunet_arm.py.in b/src/arm/test_gnunet_arm.py.in
index e657d4a3f..2b30b6b97 100644
--- a/src/arm/test_gnunet_arm.py.in
+++ b/src/arm/test_gnunet_arm.py.in
@@ -53,7 +53,7 @@ def fail(result):
53 sys.exit(1) 53 sys.exit(1)
54 54
55 55
56def end_arm_failer(command, rc, stdo, stde, normal): 56def end_arm_failure(command, rc, stdo, stde, normal):
57 if normal: 57 if normal:
58 if rc != 0: 58 if rc != 0:
59 fail( 59 fail(
@@ -69,7 +69,7 @@ def end_arm_failer(command, rc, stdo, stde, normal):
69 ) 69 )
70 70
71 71
72def print_only_failer(command, rc, stdo, stde, normal): 72def print_only_failure(command, rc, stdo, stde, normal):
73 if normal: 73 if normal:
74 if rc != 0: 74 if rc != 0:
75 print( 75 print(
@@ -87,12 +87,12 @@ def print_only_failer(command, rc, stdo, stde, normal):
87 sys.exit(1) 87 sys.exit(1)
88 88
89 89
90def r_something(to_run, extra_args, failer=None, normal=True, **kw): 90def r_something(to_run, extra_args, failure=None, normal=True, **kw):
91 rc, stdo, stde = sub_run( 91 rc, stdo, stde = sub_run(
92 to_run + extra_args, nofail=True, want_stde=True, **kw 92 to_run + extra_args, nofail=True, want_stde=True, **kw
93 ) 93 )
94 if failer is not None: 94 if failure is not None:
95 failer(to_run + extra_args, rc, stdo, stde, normal) 95 failure(to_run + extra_args, rc, stdo, stde, normal)
96 return (rc, stdo, stde) 96 return (rc, stdo, stde)
97 97
98 98
@@ -103,26 +103,26 @@ def r_arm(extra_args, **kw):
103cleanup() 103cleanup()
104 104
105print("TEST: Bad argument checking...", end='') 105print("TEST: Bad argument checking...", end='')
106r_arm(['-x'], normal=False, failer=print_only_failer) 106r_arm(['-x'], normal=False, failure=print_only_failure)
107print("PASS") 107print("PASS")
108 108
109print("TEST: Start ARM...", end='') 109print("TEST: Start ARM...", end='')
110r_arm(['-s'], failer=print_only_failer) 110r_arm(['-s'], failure=print_only_failure)
111time.sleep(1) 111time.sleep(1)
112print("PASS") 112print("PASS")
113 113
114print("TEST: Start another service...", end='') 114print("TEST: Start another service...", end='')
115r_arm(['-i', 'resolver'], failer=end_arm_failer) 115r_arm(['-i', 'resolver'], failure=end_arm_failure)
116time.sleep(1) 116time.sleep(1)
117print("PASS") 117print("PASS")
118 118
119print("TEST: Stop a service...", end='') 119print("TEST: Stop a service...", end='')
120r_arm(['-k', 'resolver'], failer=end_arm_failer) 120r_arm(['-k', 'resolver'], failure=end_arm_failure)
121time.sleep(1) 121time.sleep(1)
122print("PASS") 122print("PASS")
123 123
124print("TEST: Stop ARM...", end='') 124print("TEST: Stop ARM...", end='')
125r_arm(['-e'], failer=print_only_failer) 125r_arm(['-e'], failure=print_only_failure)
126time.sleep(1) 126time.sleep(1)
127print("PASS") 127print("PASS")
128 128