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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import os
6 import sys
7
8 def main(args):
9 """Touches a file.
10
11 Args:
12 args: An argument list, the first item of which is a file to touch.
13 """
14 try:
15 os.makedirs(os.path.dirname(args[0]))
16 except OSError:
17 pass
18 with open(args[0], 'a'):
19 os.utime(args[0], None)
20 return 0
21
22
23 if __name__ == '__main__':
24 sys.exit(main(sys.argv[1:]))
OLDNEW
« 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