apk: in test mode, always exit 0 (so the test harness doesn't stop running tests)

cute-signatures
William Pitcock 2018-02-20 22:20:15 +00:00
parent 2678bad4a5
commit dc7298122e
1 changed files with 5 additions and 0 deletions

View File

@ -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);