summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2018-02-20 22:20:15 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2018-02-20 22:21:27 +0000
commitdc7298122ed4320b838ccab39e07f4b211705e6f (patch)
tree4e2ad2335e78bd86ef22776494ef877a92a03cc8
parent2678bad4a5ead6e5b6b86dcfd523ff6c50a96964 (diff)
downloadapk-tools-dc7298122ed4320b838ccab39e07f4b211705e6f.tar.bz2
apk-tools-dc7298122ed4320b838ccab39e07f4b211705e6f.tar.xz
apk: in test mode, always exit 0 (so the test harness doesn't stop running tests)
-rw-r--r--src/apk.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/apk.c b/src/apk.c
index c2c8d64..04b41d4 100644
--- a/src/apk.c
+++ b/src/apk.c
@@ -671,6 +671,11 @@ int main(int argc, char **argv)
r = applet->main(ctx, &db, args);
apk_db_close(&db);
+#ifdef TEST_MODE
+ /* in test mode, we need to always exit 0 since xargs dies otherwise */
+ r = 0;
+#endif
+
err_and_usage:
if (r == -EINVAL)
r = usage(applet);