apk: in test mode, always exit 0 (so the test harness doesn't stop running tests)
parent
2678bad4a5
commit
dc7298122e
|
@ -671,6 +671,11 @@ int main(int argc, char **argv)
|
||||||
r = applet->main(ctx, &db, args);
|
r = applet->main(ctx, &db, args);
|
||||||
apk_db_close(&db);
|
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:
|
err_and_usage:
|
||||||
if (r == -EINVAL)
|
if (r == -EINVAL)
|
||||||
r = usage(applet);
|
r = usage(applet);
|
||||||
|
|
Loading…
Reference in New Issue