zulip/tools/lib
Aman Agrawal 5fa1dbf5b3 test_fixtures: Add DB function to write database digest.
This will give help up write new digest only if the db rebuild
succeeds. We were relying on the caller to
be successful in building db, this was hacky and unreliable.

We write new db digest once the caller succeeds, this ensures
that we write new digest after every successful attempt.

This fixes the anomality we were facing that Databases were rebuild
on the 2nd provision attempt with no changes to files or migrations.
This was happening because we didn't write a new digest for db
after the first provision (The case of DB didn't exist).

During the 1st provision, we check the template_status() of
Database both Dev and Test, but database_exists() of Databases
obviously returned false, and we rebuild the database,
but forgot to write_new_digest and hence the anomaly in the
second provision explained above.
2020-04-30 10:46:53 -07:00
..
__init__.py Extract tools/lib/template_parser.py. 2016-08-01 16:27:50 -07:00
capitalization.py python: Convert function type annotations to Python 3 style. 2020-04-18 20:42:48 -07:00
git-tools.bash tools: Give require_clean_work_tree our nice UI touches. 2020-04-06 17:52:10 -07:00
gitlint-rules.py gitlint-rules: Fix bogus type annotations. 2020-04-19 13:36:58 -07:00
html_branches.py check-templates: Show filename for tokenize errors. 2020-04-24 20:25:54 +00:00
pretty_print.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-24 13:06:54 -07:00
provision_inner.py test_fixtures: Add DB function to write database digest. 2020-04-30 10:46:53 -07:00
provision.py travis: Remove Travis unwanted code. 2020-04-28 11:11:23 -07:00
sanity_check.py python: Convert function type annotations to Python 3 style. 2020-04-18 20:42:48 -07:00
template_parser.py templates: Use <hr> and <br> consistently. 2020-04-28 17:05:48 -07:00
test_script.py python: Convert function type annotations to Python 3 style. 2020-04-18 20:42:48 -07:00
test_server.py python: Convert function type annotations to Python 3 style. 2020-04-18 20:42:48 -07:00