Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2134)

Unified Diff: appengine/swarming/swarming_bot/bot_code/bot_main_test.py

Issue 2614623004: Make Swarming bot keep 5%+250MB of the disk free. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/swarming/swarming_bot/bot_code/bot_main.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/swarming/swarming_bot/bot_code/bot_main_test.py
diff --git a/appengine/swarming/swarming_bot/bot_code/bot_main_test.py b/appengine/swarming/swarming_bot/bot_code/bot_main_test.py
index 8ec3677bc4e9eb23deaa6a2410eb45a465849154..8aa6dbd8082a361220f0a42706033071deb91d90 100755
--- a/appengine/swarming/swarming_bot/bot_code/bot_main_test.py
+++ b/appengine/swarming/swarming_bot/bot_code/bot_main_test.py
@@ -498,8 +498,7 @@ class TestBotMain(net_utils.TestCase):
'--cost-usd-hour', '3600.0', '--start', '100.0',
'--min-free-space',
str(int(
- (os_utilities.get_min_free_space(bot_main.THIS_FILE) + 250.) *
- 1024 * 1024)),
+ os_utilities.get_desired_free_space(bot_main.THIS_FILE)*1024*1024)),
]
self.assertEqual(cmd[15], '--bot-file')
self.assertTrue(cmd[16].endswith('.json'))
« no previous file with comments | « appengine/swarming/swarming_bot/bot_code/bot_main.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698