]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
selftest/meta_ide: source the environment first, then change to the sources directory
authorAlexander Kanavin <alex@linutronix.de>
Tue, 7 Oct 2025 18:21:43 +0000 (20:21 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 9 Oct 2025 09:27:02 +0000 (10:27 +0100)
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.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/meta_ide.py

index c3a7df4cdf58af56bfde90ed3ec7726a51311246..1a11473797571afae0eb556790bf48b908794745 100644 (file)
@@ -37,7 +37,7 @@ class MetaIDE(OESelftestTestCase):
 
     def test_meta_ide_can_compile_c_program(self):
         runCmd('cp %s/test.c %s' % (self.tc.files_dir, self.tmpdir_metaideQA))
-        runCmd("cd %s; . %s; $CC test.c -lm" % (self.tmpdir_metaideQA, self.environment_script_path))
+        runCmd(". %s; cd %s; $CC test.c -lm" % (self.environment_script_path, self.tmpdir_metaideQA))
         compiled_file = '%s/a.out' % self.tmpdir_metaideQA
         self.assertExists(compiled_file)