| Summary: | [sumo] oe-selftest fails do to dir not created | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Armin Kuster <akuster> |
| Component: | core | Assignee: | Armin Kuster <akuster> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | meta.mr.watcher, meta.watcher, richard.purdie |
| Version: | 2.5.3 | ||
| Target Milestone: | 2.6.4 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | with backport | ||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
I noticed if I delete the /tmp dir and then run oe-selftest it fails with the above error. I have not tried this on master. I have not found where the mkdir part is when creating a FileHandler() maybe we need something like: https://stackoverflow.com/questions/20666764/python-logging-how-to-ensure-logfile-directory-is-created fixed in master: https://git.openembedded.org/openembedded-core/commit/meta/lib/oeqa/selftest/context.py?id=6c41de48db76087fee596d9440d8f05346ab1094 backport in mainline warrior: https://git.openembedded.org/openembedded-core/commit/meta/lib/oeqa/selftest/context.py?h=warrior&id=6c41de48db76087fee596d9440d8f05346ab1094 need to backport to thud. thuds change is out for review. |
oe-selftest --skip-tests distrodata.Distrodata.test_checkpkg Traceback (most recent call last): File "/home/build/releases/sumo/poky/scripts/oe-selftest", line 70, in <module> ret = main() File "/home/build/releases/sumo/poky/scripts/oe-selftest", line 57, in main results = args.func(logger, args) File "/home/build/releases/sumo/poky/meta/lib/oeqa/selftest/context.py", line 256, in run self._process_args(logger, args) File "/home/build/releases/sumo/poky/meta/lib/oeqa/selftest/context.py", line 111, in _process_args super(OESelftestTestContextExecutor, self)._process_args(logger, args) File "/home/build/releases/sumo/poky/meta/lib/oeqa/core/context.py", line 144, in _process_args self.tc_kwargs['init']['logger'] = self._setup_logger(logger, args) File "/home/build/releases/sumo/poky/meta/lib/oeqa/core/context.py", line 131, in _setup_logger fh = logging.FileHandler(args.output_log) File "/usr/lib/python3.6/logging/__init__.py", line 1031, in __init__ StreamHandler.__init__(self, self._open()) File "/usr/lib/python3.6/logging/__init__.py", line 1060, in _open return open(self.baseFilename, self.mode, encoding=self.encoding) FileNotFoundError: [Errno 2] No such file or directory: '/home/build/releases/sumo/poky/build/tmp/log/oe-selftest-results-20190219201504.log'