]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/selftest/toaster: fix bad indent
authorCristian Iorga <cristian.iorga@intel.com>
Wed, 22 Apr 2015 09:22:31 +0000 (12:22 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 15 May 2015 17:12:09 +0000 (18:12 +0100)
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

(From OE-Core master rev: 46869abf72c1c5babce49537f221d7a4f53ca820)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/_toaster.py

index 2ed08d24e6b455fbf84f16c9725824da92e2b147..51ebda3e80fcf2cdf33c34baf286b572b3732b58 100644 (file)
@@ -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))