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

Unified Diff: chrome/tools/build/win/touch_sentinel.py

Issue 935913002: Make changes to mini_installer test files trigger tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: better Created 5 years, 10 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
Index: chrome/tools/build/win/touch_sentinel.py
diff --git a/chrome/tools/build/win/touch_sentinel.py b/chrome/tools/build/win/touch_sentinel.py
new file mode 100644
index 0000000000000000000000000000000000000000..19dd1d4a4ec836f0f8406534e22cca4ae97a0d23
--- /dev/null
+++ b/chrome/tools/build/win/touch_sentinel.py
@@ -0,0 +1,24 @@
+# Copyright 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import os
+import sys
+
+def main(args):
+ """Touches a file.
+
+ Args:
+ args: An argument list, the first item of which is a file to touch.
+ """
+ try:
+ os.makedirs(os.path.dirname(args[0]))
+ except OSError:
+ pass
+ with open(args[0], 'a'):
+ os.utime(args[0], None)
+ return 0
+
+
+if __name__ == '__main__':
+ sys.exit(main(sys.argv[1:]))
« chrome/installer/mini_installer.gyp ('K') | « chrome/tools/build/list_test_installer_sources.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698