From 0cb81e8e6233ef9f5a5bf91b41ca13ea7b066ce9 Mon Sep 17 00:00:00 2001 From: "machenbach@chromium.org" Date: Wed, 25 Sep 2013 12:37:00 +0000 Subject: [PATCH] Add windows to status variable list. This will allow to modify test expectation for system==windows. R=jkummerow@chromium.org Review URL: https://codereview.chromium.org/24528003 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16941 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- tools/testrunner/local/statusfile.py | 2 +- tools/testrunner/local/utils.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/testrunner/local/statusfile.py b/tools/testrunner/local/statusfile.py index 7e01d3b..cc1e524 100644 --- a/tools/testrunner/local/statusfile.py +++ b/tools/testrunner/local/statusfile.py @@ -52,7 +52,7 @@ DEFS = {FAIL_OK: [FAIL, OKAY], # Support arches, modes to be written as keywords instead of strings. VARIABLES = {ALWAYS: True} for var in ["debug", "release", "android_arm", "android_ia32", "arm", "ia32", - "mipsel", "x64", "nacl_ia32", "nacl_x64", "macos"]: + "mipsel", "x64", "nacl_ia32", "nacl_x64", "macos", "windows"]: VARIABLES[var] = var diff --git a/tools/testrunner/local/utils.py b/tools/testrunner/local/utils.py index b7caa12..61ee7da 100644 --- a/tools/testrunner/local/utils.py +++ b/tools/testrunner/local/utils.py @@ -65,7 +65,7 @@ def GuessOS(): elif system == 'Windows' or system == 'Microsoft': # On Windows Vista platform.system() can return 'Microsoft' with some # versions of Python, see http://bugs.python.org/issue1082 - return 'win32' + return 'windows' elif system == 'FreeBSD': return 'freebsd' elif system == 'OpenBSD': @@ -105,4 +105,4 @@ def GuessWordsize(): def IsWindows(): - return GuessOS() == 'win32' + return GuessOS() == 'windows' -- 2.7.4