Skip to content

Commit 125dd35

Browse files
Add the ability to control how much info is coming out from failures using Py.test --tb feature
Example usage is `./go //py:marionette_test:run --traceback=no` This will not show failure tracebacks. The default remains as long. Valid traceback values are long, short, line, native and no
1 parent 240ca07 commit 125dd35

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rake-tasks/crazy_fun/mappings/python.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ def handle(fun, dir, args)
159159
mark_filter = "-m=\"not ignore_#{browser_data[:ignore]}\"" if browser_data[:ignore]
160160
pytest_args += [mark_filter]
161161
keyword_filter = "-k=" + ENV['method'] if ENV['method']
162-
pytest_args += [keyword_filter]
162+
traceback_level = "--tb=" + ENV['traceback'] if ENV['traceback']
163+
pytest_args += [keyword_filter, traceback_level]
163164
pytest_args += ["--junitxml=build/test_logs/python-#{browser}-#{Time.now.to_i}.xml"]
164165
mkdir_p "build/test_logs"
165166
sh pytest_args.join(' '), :verbose => true

0 commit comments

Comments
 (0)