diff options
| author | Alexander Kanavin <alex@linutronix.de> | 2025-10-07 20:21:43 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-10-09 10:58:07 +0100 |
| commit | c040dccaf11ea77f23c4e0e62cf82654348b870e (patch) | |
| tree | 144f302b62aa9c2dc5f31d4902125a6cddebb01b | |
| parent | 9225dc234debc46848e80d697f1d38a0a3c35e7b (diff) | |
| download | poky-c040dccaf11ea77f23c4e0e62cf82654348b870e.tar.gz | |
selftest/meta_ide: source the environment first, then change to the sources directory
This too used to work by coincidence: sourcing the environment
quietly failed without changing to the build directory, but
now that it works properly, things should be done in correct order.
(From OE-Core rev: ed98173057fa128ff565e1e1078b150ca14a85e0)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/meta_ide.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/cases/meta_ide.py b/meta/lib/oeqa/selftest/cases/meta_ide.py index c3a7df4cdf..1a11473797 100644 --- a/meta/lib/oeqa/selftest/cases/meta_ide.py +++ b/meta/lib/oeqa/selftest/cases/meta_ide.py | |||
| @@ -37,7 +37,7 @@ class MetaIDE(OESelftestTestCase): | |||
| 37 | 37 | ||
| 38 | def test_meta_ide_can_compile_c_program(self): | 38 | def test_meta_ide_can_compile_c_program(self): |
| 39 | runCmd('cp %s/test.c %s' % (self.tc.files_dir, self.tmpdir_metaideQA)) | 39 | runCmd('cp %s/test.c %s' % (self.tc.files_dir, self.tmpdir_metaideQA)) |
| 40 | runCmd("cd %s; . %s; $CC test.c -lm" % (self.tmpdir_metaideQA, self.environment_script_path)) | 40 | runCmd(". %s; cd %s; $CC test.c -lm" % (self.environment_script_path, self.tmpdir_metaideQA)) |
| 41 | compiled_file = '%s/a.out' % self.tmpdir_metaideQA | 41 | compiled_file = '%s/a.out' % self.tmpdir_metaideQA |
| 42 | self.assertExists(compiled_file) | 42 | self.assertExists(compiled_file) |
| 43 | 43 | ||
