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

Unified Diff: swarm_client/tests/trace_inputs/touch_only.py

Issue 69143004: Delete swarm_client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/
Patch Set: Created 7 years, 1 month 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 | « swarm_client/tests/trace_inputs/test_file.txt ('k') | swarm_client/tests/trace_inputs/tricky_filename.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: swarm_client/tests/trace_inputs/touch_only.py
===================================================================
--- swarm_client/tests/trace_inputs/touch_only.py (revision 235167)
+++ swarm_client/tests/trace_inputs/touch_only.py (working copy)
@@ -1,30 +0,0 @@
-#!/usr/bin/env python
-# Copyright (c) 2012 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.
-
-"""Uses different APIs to touch a file."""
-
-import os
-import sys
-
-
-BASE_DIR = os.path.dirname(os.path.abspath(__file__))
-
-
-def main():
- print 'Only look if a file exists but do not open it.'
- assert len(sys.argv) == 2
- path = os.path.join(BASE_DIR, 'test_file.txt')
- command = sys.argv[1]
- if command == 'access':
- return not os.access(path, os.R_OK)
- elif command == 'isfile':
- return not os.path.isfile(path)
- elif command == 'stat':
- return not os.stat(path).st_size
- return 1
-
-
-if __name__ == '__main__':
- sys.exit(main())
« no previous file with comments | « swarm_client/tests/trace_inputs/test_file.txt ('k') | swarm_client/tests/trace_inputs/tricky_filename.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698