diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2014-12-23 14:34:29 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-12-25 08:27:12 +0000 |
commit | d4d73b0139d7cdd490b0e7d783c9bab61446f995 (patch) | |
tree | 05270973b9284d88933421b55904f7767b4917e2 /meta/lib/oeqa/utils/commands.py | |
parent | e75139cc9d5a6a8ecd58bd854cd9ced77ea1d046 (diff) | |
download | poky-d4d73b0139d7cdd490b0e7d783c9bab61446f995.tar.gz |
oeqa/utils: replace some tabs with spaces
Python code should use spaces only for indentation.
(From OE-Core rev: a1e22121e521aabf454a850cd7c8be60b7b1adc3)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/utils/commands.py')
-rw-r--r-- | meta/lib/oeqa/utils/commands.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py index d29c1b1a68..5b601d9806 100644 --- a/meta/lib/oeqa/utils/commands.py +++ b/meta/lib/oeqa/utils/commands.py | |||
@@ -110,11 +110,11 @@ def runCmd(command, ignore_status=False, timeout=None, assert_error=True, **opti | |||
110 | def bitbake(command, ignore_status=False, timeout=None, postconfig=None, **options): | 110 | def bitbake(command, ignore_status=False, timeout=None, postconfig=None, **options): |
111 | 111 | ||
112 | if postconfig: | 112 | if postconfig: |
113 | postconfig_file = os.path.join(os.environ.get('BUILDDIR'), 'oeqa-post.conf') | 113 | postconfig_file = os.path.join(os.environ.get('BUILDDIR'), 'oeqa-post.conf') |
114 | ftools.write_file(postconfig_file, postconfig) | 114 | ftools.write_file(postconfig_file, postconfig) |
115 | extra_args = "-R %s" % postconfig_file | 115 | extra_args = "-R %s" % postconfig_file |
116 | else: | 116 | else: |
117 | extra_args = "" | 117 | extra_args = "" |
118 | 118 | ||
119 | if isinstance(command, basestring): | 119 | if isinstance(command, basestring): |
120 | cmd = "bitbake " + extra_args + " " + command | 120 | cmd = "bitbake " + extra_args + " " + command |
@@ -122,7 +122,7 @@ def bitbake(command, ignore_status=False, timeout=None, postconfig=None, **optio | |||
122 | cmd = [ "bitbake" ] + [a for a in (command + extra_args.split(" ")) if a not in [""]] | 122 | cmd = [ "bitbake" ] + [a for a in (command + extra_args.split(" ")) if a not in [""]] |
123 | 123 | ||
124 | try: | 124 | try: |
125 | return runCmd(cmd, ignore_status, timeout, **options) | 125 | return runCmd(cmd, ignore_status, timeout, **options) |
126 | finally: | 126 | finally: |
127 | if postconfig: | 127 | if postconfig: |
128 | os.remove(postconfig_file) | 128 | os.remove(postconfig_file) |