Whole bunch of changes

Run sync within a SQL transaction, so that no partial sync happens

Don't abort on SQL errors, but print ERROR notice

Exit with code 1 when any ERRORs were logged

Silence the test suite, so that test runs are more clearly

Use PG queries instead of psql in test. This is more flexible
than parsing text outputs per Regexp.
This commit is contained in:
Lars Kanis
2018-03-13 16:21:20 +01:00
parent d9cb63ed98
commit 257b1a5e49
7 changed files with 164 additions and 46 deletions

View File

@ -2,4 +2,8 @@
require 'pg_ldap_sync'
PgLdapSync::Application.run(ARGV)
begin
PgLdapSync::Application.run(ARGV)
rescue PgLdapSync::ApplicationExit => ex
exit ex.exitcode
end