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

Unified Diff: client/site_tests/platform_StackProtector/platform_StackProtector.py

Issue 6090004: Move Autotest to /usr/local/autotest and fix hard-coded autodir paths in client tests. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: Revert to hard-coded path for logging_UserCrash Created 9 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
Index: client/site_tests/platform_StackProtector/platform_StackProtector.py
diff --git a/client/site_tests/platform_StackProtector/platform_StackProtector.py b/client/site_tests/platform_StackProtector/platform_StackProtector.py
index 640ac4dd5f846b398256df6d5b39d6d70c62a238..e34fd7cacf12fb7fc4d370b5b4899757f21beabc 100644
--- a/client/site_tests/platform_StackProtector/platform_StackProtector.py
+++ b/client/site_tests/platform_StackProtector/platform_StackProtector.py
@@ -41,11 +41,10 @@ class platform_StackProtector(test.test):
"""
libc_glob = "/lib/libc-[0-9]*"
os.chdir(self.srcdir)
- cmd = ("find '%s' -wholename /proc -prune -o "
+ cmd = ("find '%s' -wholename %s -prune -o "
+ " -wholename /proc -prune -o "
" -wholename /dev -prune -o "
" -wholename /sys -prune -o "
- " -wholename /home/autotest -prune -o "
- " -wholename /usr/local/autotest -prune -o "
" -wholename /mnt/stateful_partition -prune -o "
# A couple of files known to be a false positive:
" -wholename '/home/chronos/Safe Browsing Bloom*' -prune -o "
@@ -56,7 +55,7 @@ class platform_StackProtector(test.test):
"sh -c 'binutils/objdump -CR {} 2>&1 | "
"egrep -q \"(stack_chk|Invalid|not recognized)\" || echo {}' ';'"
)
- badfiles = utils.system_output(cmd % (rootdir, libc_glob))
+ badfiles = utils.system_output(cmd % (rootdir, self.autodir, libc_glob))
# special case check for libc, needs different objdump flags
cmd = "binutils/objdump -D %s | egrep -q stack_chk || echo %s"
« no previous file with comments | « client/site_tests/logging_UserCrash/logging_UserCrash.py ('k') | client/site_tests/power_LoadTest/external_extensions.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698