Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
acaf5bea
Commit
acaf5bea
authored
Aug 09, 2018
by
Gennadiy Civil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
formatting and small changes related to code management, no functionality changes
parent
4d941146
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
11 deletions
+8
-11
googletest-output-test.py
googletest/test/googletest-output-test.py
+5
-6
gtest_test_utils.py
googletest/test/gtest_test_utils.py
+3
-5
No files found.
googletest/test/googletest-output-test.py
View file @
acaf5bea
...
@@ -31,12 +31,11 @@
...
@@ -31,12 +31,11 @@
"""Tests the text output of Google C++ Testing and Mocking Framework.
"""Tests the text output of Google C++ Testing and Mocking Framework.
To update the golden file:
SYNOPSIS
googletest_output_test.py --build_dir=BUILD/DIR --gengolden
googletest_output_test.py --build_dir=BUILD/DIR --gengolden
where BUILD/DIR contains the built googletest-output-test_ file.
# where BUILD/DIR contains the built googletest-output-test_ file.
googletest_output_test.py --gengolden
googletest_output_test.py --gengolden
googletest_output_test.py
googletest_output_test.py
"""
"""
__author__
=
'wan@google.com (Zhanyong Wan)'
__author__
=
'wan@google.com (Zhanyong Wan)'
...
...
googletest/test/gtest_test_utils.py
View file @
acaf5bea
...
@@ -36,15 +36,13 @@ __author__ = 'wan@google.com (Zhanyong Wan)'
...
@@ -36,15 +36,13 @@ __author__ = 'wan@google.com (Zhanyong Wan)'
import
os
import
os
import
sys
import
sys
IS_LINUX
=
os
.
name
==
'posix'
and
os
.
uname
()[
0
]
==
'Linux'
IS_WINDOWS
=
os
.
name
==
'nt'
IS_WINDOWS
=
os
.
name
==
'nt'
IS_CYGWIN
=
os
.
name
==
'posix'
and
'CYGWIN'
in
os
.
uname
()[
0
]
IS_CYGWIN
=
os
.
name
==
'posix'
and
'CYGWIN'
in
os
.
uname
()[
0
]
import
atexit
import
atexit
import
shutil
import
shutil
import
tempfile
import
tempfile
import
unittest
import
unittest
as
_test_module
_test_module
=
unittest
try
:
try
:
import
subprocess
import
subprocess
...
@@ -74,7 +72,7 @@ def SetEnvVar(env_var, value):
...
@@ -74,7 +72,7 @@ def SetEnvVar(env_var, value):
# Here we expose a class from a particular module, depending on the
# Here we expose a class from a particular module, depending on the
# environment. The comment suppresses the 'Invalid variable name' lint
# environment. The comment suppresses the 'Invalid variable name' lint
# complaint.
# complaint.
TestCase
=
_test_module
.
TestCase
# pylint: disable
-msg
=C6409
TestCase
=
_test_module
.
TestCase
# pylint: disable=C6409
# Initially maps a flag to its default value. After
# Initially maps a flag to its default value. After
# _ParseAndStripGTestFlags() is called, maps a flag to its actual value.
# _ParseAndStripGTestFlags() is called, maps a flag to its actual value.
...
@@ -88,7 +86,7 @@ def _ParseAndStripGTestFlags(argv):
...
@@ -88,7 +86,7 @@ def _ParseAndStripGTestFlags(argv):
# Suppresses the lint complaint about a global variable since we need it
# Suppresses the lint complaint about a global variable since we need it
# here to maintain module-wide state.
# here to maintain module-wide state.
global
_gtest_flags_are_parsed
# pylint: disable
-msg
=W0603
global
_gtest_flags_are_parsed
# pylint: disable=W0603
if
_gtest_flags_are_parsed
:
if
_gtest_flags_are_parsed
:
return
return
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment