diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-09-15 13:17:59 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-09-15 13:17:59 +0200 |
commit | 3d6928fab875bb0a6831bf7696654d1ba2a7af4f (patch) | |
tree | bb8e695571fb581805475c0bb10edb53142f773d | |
parent | ff0a206f9d93060e50818613ec9397b188242fe2 (diff) | |
download | exchange-3d6928fab875bb0a6831bf7696654d1ba2a7af4f.tar.gz exchange-3d6928fab875bb0a6831bf7696654d1ba2a7af4f.zip |
do not output file on wget in testing
-rw-r--r-- | src/lib/testing_api_cmd_sleep.c | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/src/lib/testing_api_cmd_sleep.c b/src/lib/testing_api_cmd_sleep.c index 326f38b53..4d270331e 100644 --- a/src/lib/testing_api_cmd_sleep.c +++ b/src/lib/testing_api_cmd_sleep.c | |||
@@ -40,6 +40,7 @@ struct SleepState | |||
40 | unsigned int duration; | 40 | unsigned int duration; |
41 | }; | 41 | }; |
42 | 42 | ||
43 | |||
43 | /** | 44 | /** |
44 | * No traits to offer, just provide a stub to be called when | 45 | * No traits to offer, just provide a stub to be called when |
45 | * some CMDs iterates through the list of all the commands. | 46 | * some CMDs iterates through the list of all the commands. |
@@ -60,6 +61,7 @@ sleep_traits (void *cls, | |||
60 | return GNUNET_NO; | 61 | return GNUNET_NO; |
61 | } | 62 | } |
62 | 63 | ||
64 | |||
63 | /** | 65 | /** |
64 | * Run the command. | 66 | * Run the command. |
65 | * | 67 | * |
@@ -111,18 +113,20 @@ TALER_TESTING_cmd_sleep (const char *label, | |||
111 | ss = GNUNET_new (struct SleepState); | 113 | ss = GNUNET_new (struct SleepState); |
112 | ss->duration = duration_s; | 114 | ss->duration = duration_s; |
113 | 115 | ||
114 | 116 | { | |
115 | struct TALER_TESTING_Command cmd = { | 117 | struct TALER_TESTING_Command cmd = { |
116 | .cls = ss, | 118 | .cls = ss, |
117 | .label = label, | 119 | .label = label, |
118 | .run = &sleep_run, | 120 | .run = &sleep_run, |
119 | .cleanup = &sleep_cleanup, | 121 | .cleanup = &sleep_cleanup, |
120 | .traits = &sleep_traits | 122 | .traits = &sleep_traits |
121 | }; | 123 | }; |
122 | 124 | ||
123 | return cmd; | 125 | return cmd; |
126 | } | ||
124 | } | 127 | } |
125 | 128 | ||
129 | |||
126 | /** | 130 | /** |
127 | * Cleanup the state from a "wait service" CMD. | 131 | * Cleanup the state from a "wait service" CMD. |
128 | * | 132 | * |
@@ -137,6 +141,7 @@ wait_service_cleanup (void *cls, | |||
137 | return; | 141 | return; |
138 | } | 142 | } |
139 | 143 | ||
144 | |||
140 | /** | 145 | /** |
141 | * No traits to offer, just provide a stub to be called when | 146 | * No traits to offer, just provide a stub to be called when |
142 | * some CMDs iterates through the list of all the commands. | 147 | * some CMDs iterates through the list of all the commands. |
@@ -157,6 +162,7 @@ wait_service_traits (void *cls, | |||
157 | return GNUNET_NO; | 162 | return GNUNET_NO; |
158 | } | 163 | } |
159 | 164 | ||
165 | |||
160 | /** | 166 | /** |
161 | * Run a "wait service" CMD. | 167 | * Run a "wait service" CMD. |
162 | * | 168 | * |
@@ -174,7 +180,7 @@ wait_service_run (void *cls, | |||
174 | char *wget_cmd; | 180 | char *wget_cmd; |
175 | 181 | ||
176 | GNUNET_asprintf (&wget_cmd, | 182 | GNUNET_asprintf (&wget_cmd, |
177 | "wget -q -t 1 -T 1 %s\n", | 183 | "wget -q -t 1 -T 1 %s -o /dev/null -O /dev/null", |
178 | url); | 184 | url); |
179 | do | 185 | do |
180 | { | 186 | { |