
* Rename aura_shell_unittests target to ash_unittests * Add a target for aura_shell_unittests that makes a copy of ash_unittests We need the old copy until we can switch the build bots to using the new copy. cp.py needs to change slightly to preserve the executable bit of the test binary. BUG=110107 TEST=Run build/gyp_chromium, inspected build.ninja files to verify rules existed for both ash_unittests and aura_shell_unittests, built and ran both targets TBR=thestig@chromium.org for trivial rename in tools/valgrind/chrome_test.py Review URL: https://chromiumcodereview.appspot.com/10700163 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146654 0039d316-1c4b-4281-b951-d872f2087c98
23 lines
564 B
Python
Executable File
23 lines
564 B
Python
Executable File
#!/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.
|
|
|
|
"""Copy a file.
|
|
|
|
This module works much like the cp posix command - it takes 2 arguments:
|
|
(src, dst) and copies the file with path |src| to |dst|.
|
|
"""
|
|
|
|
import shutil
|
|
import sys
|
|
|
|
|
|
def Main(src, dst):
|
|
# Use copy instead of copyfile to ensure the executable bit is copied.
|
|
return shutil.copy(src, dst)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
sys.exit(Main(sys.argv[1], sys.argv[2]))
|