Skip to content

Commit

Permalink
fix: remove of db
Browse files Browse the repository at this point in the history
remove the db before testing for more accurate time
  • Loading branch information
meo-pill committed Jan 7, 2025
1 parent a9613f0 commit 69a087d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions testing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ assertions
color_echo "$Green" "Tests passed!"

echo "Running rebalancing on big files..."
rm -f rebalance_db.txt
# measure time taken
start_time=$(date +%s%3N)
./zfs-inplace-rebalancing.sh $test_pool_data_size_path/big >> $log_std_file 2>> $log_error_file
Expand All @@ -156,13 +157,19 @@ assertions
color_echo "$Green" "Tests passed!"

echo "Running rebalancing on all files..."
# measure time taken whit
rm -f rebalance_db.txt
# measure time taken
start_time=$(date +%s%3N)
./zfs-inplace-rebalancing.sh $test_pool_data_size_path >> $log_std_file 2>> $log_error_file
end_time=$(date +%s%3N)
print_time_taken $((end_time - start_time))
assertions
color_echo "$Green" "Tests passed!"

color_echo "$Green" "All tests passed!"
color_echo "$Cyan" "Cleaning"
rm -f $log_std_file
rm -f $log_error_file
rm -f rebalance_db.txt
rm -rf $test_pool_data_path

color_echo "$Green" "All tests passed!"

0 comments on commit 69a087d

Please sign in to comment.