All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] oeqa/selftest/toaster: fix bad indent
@ 2015-04-22  9:22 Cristian Iorga
  2015-04-22  9:42 ` Damian, Alexandru
  0 siblings, 1 reply; 2+ messages in thread
From: Cristian Iorga @ 2015-04-22  9:22 UTC (permalink / raw)
  To: openembedded-core

oe-selftest --list-classes crashes because
of a bad indent (see below). Fixed.

systemd-build$ oe-selftest --list-classes
2015-04-22 12:12:39,141 - selftest - INFO - Listing all available test modules:
_sstatetests_noauto (hidden)
 -- SStateBase
 -- RebuildFromSState
 --  -- test_sstate_rebuild
 --  -- test_sstate_relocation
_toaster (hidden)
Traceback (most recent call last):
  File "/mnt/Yo/yoctoproject/poky/scripts/oe-selftest", line 201, in <module>
    ret = main()
  File "/mnt/Yo/yoctoproject/poky/scripts/oe-selftest", line 157, in main
    modlib = importlib.import_module(test)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/mnt/Yo/yoctoproject/poky/meta/lib/oeqa/selftest/_toaster.py", line 438
    time.sleep(3)
    ^
IndentationError: unexpected indent

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
---
 meta/lib/oeqa/selftest/_toaster.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oeqa/selftest/_toaster.py b/meta/lib/oeqa/selftest/_toaster.py
index 2ed08d2..51ebda3 100644
--- a/meta/lib/oeqa/selftest/_toaster.py
+++ b/meta/lib/oeqa/selftest/_toaster.py
@@ -435,7 +435,7 @@ class Toaster_DB_Tests(ToasterSetup):
             if k <= 5:
                 files = zonefilelist[k]
                 os.system("export TZ="+str(files)+"; python manage.py runserver > /dev/null 2>&1 &")
-                    time.sleep(3)
+                time.sleep(3)
                 pid = subprocess.check_output("ps aux | grep '[/u]sr/bin/python manage.py runserver' | awk '{print $2}'", shell = True)
                 if pid:
                     os.system("kill -9 "+str(pid))
-- 
2.1.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] oeqa/selftest/toaster: fix bad indent
  2015-04-22  9:22 [PATCH] oeqa/selftest/toaster: fix bad indent Cristian Iorga
@ 2015-04-22  9:42 ` Damian, Alexandru
  0 siblings, 0 replies; 2+ messages in thread
From: Damian, Alexandru @ 2015-04-22  9:42 UTC (permalink / raw)
  To: Cristian Iorga; +Cc: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 2233 bytes --]

Thank you for spotting this ! :)


Alex

On Wed, Apr 22, 2015 at 10:22 AM, Cristian Iorga <cristian.iorga@intel.com>
wrote:

> oe-selftest --list-classes crashes because
> of a bad indent (see below). Fixed.
>
> systemd-build$ oe-selftest --list-classes
> 2015-04-22 12:12:39,141 - selftest - INFO - Listing all available test
> modules:
> _sstatetests_noauto (hidden)
>  -- SStateBase
>  -- RebuildFromSState
>  --  -- test_sstate_rebuild
>  --  -- test_sstate_relocation
> _toaster (hidden)
> Traceback (most recent call last):
>   File "/mnt/Yo/yoctoproject/poky/scripts/oe-selftest", line 201, in
> <module>
>     ret = main()
>   File "/mnt/Yo/yoctoproject/poky/scripts/oe-selftest", line 157, in main
>     modlib = importlib.import_module(test)
>   File "/usr/lib/python2.7/importlib/__init__.py", line 37, in
> import_module
>     __import__(name)
>   File "/mnt/Yo/yoctoproject/poky/meta/lib/oeqa/selftest/_toaster.py",
> line 438
>     time.sleep(3)
>     ^
> IndentationError: unexpected indent
>
> Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
> ---
>  meta/lib/oeqa/selftest/_toaster.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/lib/oeqa/selftest/_toaster.py
> b/meta/lib/oeqa/selftest/_toaster.py
> index 2ed08d2..51ebda3 100644
> --- a/meta/lib/oeqa/selftest/_toaster.py
> +++ b/meta/lib/oeqa/selftest/_toaster.py
> @@ -435,7 +435,7 @@ class Toaster_DB_Tests(ToasterSetup):
>              if k <= 5:
>                  files = zonefilelist[k]
>                  os.system("export TZ="+str(files)+"; python manage.py
> runserver > /dev/null 2>&1 &")
> -                    time.sleep(3)
> +                time.sleep(3)
>                  pid = subprocess.check_output("ps aux | grep
> '[/u]sr/bin/python manage.py runserver' | awk '{print $2}'", shell = True)
>                  if pid:
>                      os.system("kill -9 "+str(pid))
> --
> 2.1.0
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>



-- 
Alex Damian
Yocto Project
SSG / OTC

[-- Attachment #2: Type: text/html, Size: 3332 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-04-22  9:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-22  9:22 [PATCH] oeqa/selftest/toaster: fix bad indent Cristian Iorga
2015-04-22  9:42 ` Damian, Alexandru

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.