From bf91753dc6142a0de6fbc7c1b9bd5957a7e0fe1c Mon Sep 17 00:00:00 2001 From: romainx Date: Thu, 13 Feb 2020 10:20:42 +0100 Subject: [PATCH] minor changes on outdated package helper --- Makefile | 2 +- test/test_outdated.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8f844bb2..55f4cd1b 100644 --- a/Makefile +++ b/Makefile @@ -49,7 +49,7 @@ build/%: ## build the latest image for a stack build-all: $(foreach I,$(ALL_IMAGES),arch_patch/$(I) build/$(I) ) ## build all stacks build-test-all: $(foreach I,$(ALL_IMAGES),arch_patch/$(I) build/$(I) test/$(I) ) ## build and test all stacks -check_outdated/%: ## Check the outdated conda packages in a stack and produce a report (experimental) +check-outdated/%: ## check the outdated conda packages in a stack and produce a report (experimental) @TEST_IMAGE="$(OWNER)/$(notdir $@)" pytest test/test_outdated.py dev/%: ARGS?= diff --git a/test/test_outdated.py b/test/test_outdated.py index d1cb0943..46d9bf2f 100644 --- a/test/test_outdated.py +++ b/test/test_outdated.py @@ -73,7 +73,7 @@ def print_result(installed, result): nb_updatable = len(result) updatable_ratio = nb_updatable / nb_packages LOGGER.info( - f"{nb_updatable} packages can be updated over {nb_packages} -> {updatable_ratio:.0%}" + f"{nb_updatable}/{nb_packages} ({updatable_ratio:.0%}) packages could be updated" ) LOGGER.info(f"\n{tabulate(result, headers='keys')}\n")