• Kirill Smelkov's avatar
    test/gen_testdata: Start generating test files from clean empty state · 55769490
    Kirill Smelkov authored
    Previsouly we were generating e.g. 1.fs starting over existing 1.fs and
    due to that when FileStoraga was opening it, it was e.g. scanning
    existing 1.fs.index, thus doing some time() calls and so when the
    database was started to be generted the state of the timer was different
    compared to the situation if the database did not existed before
    gen_testdata.py run. In other words the result of gen_testdata.py run
    was different for the cases when it run after `rm testdata/1*` and
    without that rm.
    
    -> Make gen_testdata result to be stable irregardless of the start state
    when it runs by explicitly removing test databases fitst.
    
    As diff to *.zpickledis.ok shows, resulting changes are only in
    transaction IDs.
    55769490