Fix flake8 style reports
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
parent
f8067a449b
commit
839c936abb
@ -129,8 +129,8 @@ class BuildCommand(Command):
|
|||||||
"""
|
"""
|
||||||
# Start bitbake build of image
|
# Start bitbake build of image
|
||||||
bitbake = find_program(ctx.environ['PATH'], 'bitbake')
|
bitbake = find_program(ctx.environ['PATH'], 'bitbake')
|
||||||
cmd = ([bitbake, '-k', '-c', ctx.config.get_bitbake_task()]
|
cmd = [bitbake, '-k', '-c', ctx.config.get_bitbake_task()] \
|
||||||
+ self.extra_bitbake_args + ctx.config.get_bitbake_targets())
|
+ self.extra_bitbake_args + ctx.config.get_bitbake_targets()
|
||||||
if sys.stdout.isatty():
|
if sys.stdout.isatty():
|
||||||
logging.info('%s$ %s', ctx.build_dir, ' '.join(cmd))
|
logging.info('%s$ %s', ctx.build_dir, ' '.join(cmd))
|
||||||
ret = subprocess.call(cmd, env=ctx.environ, cwd=ctx.build_dir)
|
ret = subprocess.call(cmd, env=ctx.environ, cwd=ctx.build_dir)
|
||||||
|
@ -132,8 +132,8 @@ class SetupHome(Command):
|
|||||||
'\temail = kas@example.com\n'
|
'\temail = kas@example.com\n'
|
||||||
'\tname = Kas User\n')
|
'\tname = Kas User\n')
|
||||||
|
|
||||||
if (os.environ.get('AWS_CONFIG_FILE', False)
|
if os.environ.get('AWS_CONFIG_FILE', False) \
|
||||||
and os.environ.get('AWS_SHARED_CREDENTIALS_FILE', False)):
|
and os.environ.get('AWS_SHARED_CREDENTIALS_FILE', False):
|
||||||
os.makedirs(self.tmpdirname + "/.aws")
|
os.makedirs(self.tmpdirname + "/.aws")
|
||||||
|
|
||||||
shutil.copy(os.environ['AWS_CONFIG_FILE'],
|
shutil.copy(os.environ['AWS_CONFIG_FILE'],
|
||||||
|
@ -274,8 +274,8 @@ class RepoImpl(Repo):
|
|||||||
|
|
||||||
if os.path.isfile(path):
|
if os.path.isfile(path):
|
||||||
my_patches.append((path, patch['id']))
|
my_patches.append((path, patch['id']))
|
||||||
elif (os.path.isdir(path)
|
elif os.path.isdir(path) \
|
||||||
and os.path.isfile(os.path.join(path, 'series'))):
|
and os.path.isfile(os.path.join(path, 'series')):
|
||||||
with open(os.path.join(path, 'series')) as f:
|
with open(os.path.join(path, 'series')) as f:
|
||||||
for line in f:
|
for line in f:
|
||||||
if line.startswith('#'):
|
if line.startswith('#'):
|
||||||
|
@ -40,6 +40,7 @@ def test_patch(tmpdir):
|
|||||||
kas.kas(['shell', 'test.yml', '-c', 'true'])
|
kas.kas(['shell', 'test.yml', '-c', 'true'])
|
||||||
os.chdir(prev_dir)
|
os.chdir(prev_dir)
|
||||||
|
|
||||||
|
|
||||||
def test_patch_update(tmpdir):
|
def test_patch_update(tmpdir):
|
||||||
"""
|
"""
|
||||||
Test that patches are applied correctly after switching refspec from
|
Test that patches are applied correctly after switching refspec from
|
||||||
|
@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
|
||||||
from kas import kas
|
from kas import kas
|
||||||
from kas.libkas import run_cmd
|
from kas.libkas import run_cmd
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user