Skip to content

Commit

Permalink
Refresh test user dir on each test run (#3259)
Browse files Browse the repository at this point in the history
* Refresh user dir on each run

* style(autofix.ci): automated formatting

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
olanti-p and autofix-ci[bot] authored Sep 25, 2023
1 parent b8a55df commit 1d7d3d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ static void init_global_game_state( const std::vector<mod_id> &mods,
option_overrides_t &option_overrides,
const std::string &user_dir )
{
remove_directory( user_dir );
if( !assure_dir_exist( user_dir ) ) {
assert( !"Unable to make user_dir directory. Check permissions." );
}
Expand Down

0 comments on commit 1d7d3d4

Please sign in to comment.