From 2cd10853130b2dd13fe99ffa25d3b590969464ec Mon Sep 17 00:00:00 2001 From: czoido Date: Tue, 1 Sep 2020 10:28:28 +0200 Subject: [PATCH] fix warning message --- conans/client/command.py | 2 +- conans/test/functional/command/info/info_test.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conans/client/command.py b/conans/client/command.py index a5deb03f6b4..a0b798fae0d 100644 --- a/conans/client/command.py +++ b/conans/client/command.py @@ -682,7 +682,7 @@ def info(self, *args): if args.build_order: self._out.warn("Usage of `--build-order` argument is deprecated and can return" - " wrong results. Use `conan graph build-order ...` instead.") + " wrong results. Use `conan lock build-order ...` instead.") if args.install_folder and (args.profile_host or args.settings_host or args.options_host or args.env_host): diff --git a/conans/test/functional/command/info/info_test.py b/conans/test/functional/command/info/info_test.py index da5338b87da..23b82264028 100644 --- a/conans/test/functional/command/info/info_test.py +++ b/conans/test/functional/command/info/info_test.py @@ -541,10 +541,10 @@ def diamond_build_order_test(self): self.client.out) self.client.run("info . -bo=Dev1/0.1@lasote/stable") self.assertEqual("WARN: Usage of `--build-order` argument is deprecated and can return wrong" - " results. Use `conan graph build-order ...` instead.\n\n", self.client.out) + " results. Use `conan lock build-order ...` instead.\n\n", self.client.out) self.client.run("info . -bo=LibG/0.1@lasote/stable") self.assertEqual("WARN: Usage of `--build-order` argument is deprecated and can return wrong" - " results. Use `conan graph build-order ...` instead.\n\n", self.client.out) + " results. Use `conan lock build-order ...` instead.\n\n", self.client.out) self.client.run("info . --build-order=ALL") self.assertIn("[LibA/0.1@lasote/stable, LibE/0.1@lasote/stable, LibF/0.1@lasote/stable], "