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

Unified Diff: recipes/engine_tests/unicode.py

Issue 2088343002: improve unicode support (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/recipes-py@master
Patch Set: Copyright Created 4 years, 6 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: recipes/engine_tests/unicode.py
diff --git a/recipe_modules/tempfile/example.py b/recipes/engine_tests/unicode.py
similarity index 57%
copy from recipe_modules/tempfile/example.py
copy to recipes/engine_tests/unicode.py
index f9f8c89583f6e2730d8472657a76843c139057d0..138f1763fac2c50999627aa9d965a68a1dabc0f6 100644
--- a/recipe_modules/tempfile/example.py
+++ b/recipes/engine_tests/unicode.py
@@ -1,15 +1,19 @@
+# -*- coding: utf-8 -*-
# Copyright 2016 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
DEPS = [
- 'tempfile',
+ 'properties',
+ 'step',
]
def RunSteps(api):
- with api.tempfile.temp_dir('foo'):
- pass
-
+ result = api.step(
+ 'trigger some junk',
+ cmd=['echo', 'hi'],
+ )
+ result.presentation.logs['thing'] = u'hiiiii 😀…'
def GenTests(api):
yield api.test('basic')
« no previous file with comments | « recipe_engine/third_party/expect_tests/serialize.py ('k') | recipes/engine_tests/unicode.expected/basic.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698