[PATCH RFC 6/8] scripts: fix CI_WORKFLOW basename mapping
Daniel Gomez <[email protected]>
| Newsgroups | dev.linux.lists.kdevops |
|---|---|
| Message-ID | <[email protected]> |
From: Daniel Gomez <[email protected]> Fix CI_WORKFLOW basename mapping in scripts/ci.Makefile: - Add mapping for XFS/fstests workflows - Map xfs*/btrfs*/ext4*/tmpfs*/lbs-xfs* to 'fstests' basename - Fixes 'make: Nothing to be done for ci-test' error Signed-off-by: Daniel Gomez <[email protected]> --- scripts/ci.Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/ci.Makefile b/scripts/ci.Makefile index 1c47c618..9d8151c3 100644 --- a/scripts/ci.Makefile +++ b/scripts/ci.Makefile @@ -10,8 +10,21 @@ ifneq (y,$(CONFIG_WORKFLOW_LINUX_PACKAGED)) ifeq ($(strip $(CI_WORKFLOW)),) CI_WORKFLOW_BASENAME := $(shell basename $(CONFIG_BOOTLINUX_TREE) | sed 's/\.git$$//') else +# Map workflow names to their appropriate .ci basename +ifeq ($(findstring xfs,$(CI_WORKFLOW)),xfs) +CI_WORKFLOW_BASENAME := fstests +else ifeq ($(findstring btrfs,$(CI_WORKFLOW)),btrfs) +CI_WORKFLOW_BASENAME := fstests +else ifeq ($(findstring ext4,$(CI_WORKFLOW)),ext4) +CI_WORKFLOW_BASENAME := fstests +else ifeq ($(findstring tmpfs,$(CI_WORKFLOW)),tmpfs) +CI_WORKFLOW_BASENAME := fstests +else ifeq ($(findstring lbs-xfs,$(CI_WORKFLOW)),lbs-xfs) +CI_WORKFLOW_BASENAME := fstests +else CI_WORKFLOW_BASENAME := $(shell basename $(CI_WORKFLOW)) endif +endif ifneq ($(wildcard .ci/build-test/$(CI_WORKFLOW_BASENAME)),) ifneq ($(wildcard .ci/test/$(CI_WORKFLOW_BASENAME)),) -- 2.50.1