diff options
author | William Pitcock <nenolod@dereferenced.org> | 2018-02-20 22:20:15 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-02-20 22:21:27 +0000 |
commit | dc7298122ed4320b838ccab39e07f4b211705e6f (patch) | |
tree | 4e2ad2335e78bd86ef22776494ef877a92a03cc8 | |
parent | 2678bad4a5ead6e5b6b86dcfd523ff6c50a96964 (diff) | |
download | apk-tools-dc7298122ed4320b838ccab39e07f4b211705e6f.tar.gz apk-tools-dc7298122ed4320b838ccab39e07f4b211705e6f.tar.bz2 apk-tools-dc7298122ed4320b838ccab39e07f4b211705e6f.tar.xz apk-tools-dc7298122ed4320b838ccab39e07f4b211705e6f.zip |
apk: in test mode, always exit 0 (so the test harness doesn't stop running tests)
-rw-r--r-- | src/apk.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |