[PATCH lkp-tests] iso2rootfs: fix `has_cmd: command not found` error

[Error Msg] ++ has_cmd yum /lkp/lkp/src/tests/iso2rootfs: line 213: has_cmd: command not found Signed-off-by: Yu Chuan <13186087857@163.com> --- tests/iso2rootfs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/iso2rootfs b/tests/iso2rootfs index 8625b6484d89..9f2a77de17c6 100755 --- a/tests/iso2rootfs +++ b/tests/iso2rootfs @@ -6,6 +6,8 @@ set -e umask 0002 +. $LKP_SRC/lib/env.sh + # allow sut os array # - if job's os not in this array, job won't execute ALLOW_OS=( -- 2.23.0

On Tue, Dec 15, 2020 at 10:40:28AM +0800, Yu Chuan wrote: Reviewed-by: Liu Yinsi <liuyinsi@163.com>
[Error Msg] ++ has_cmd yum /lkp/lkp/src/tests/iso2rootfs: line 213: has_cmd: command not found
Signed-off-by: Yu Chuan <13186087857@163.com> --- tests/iso2rootfs | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/tests/iso2rootfs b/tests/iso2rootfs index 8625b6484d89..9f2a77de17c6 100755 --- a/tests/iso2rootfs +++ b/tests/iso2rootfs @@ -6,6 +6,8 @@ set -e
umask 0002
+. $LKP_SRC/lib/env.sh + # allow sut os array # - if job's os not in this array, job won't execute ALLOW_OS=( -- 2.23.0

Reviewed-by: Wang Chenglong <18509160991@163.com> On Tue, Dec 15, 2020 at 10:40:28AM +0800, Yu Chuan wrote:
[Error Msg] ++ has_cmd yum /lkp/lkp/src/tests/iso2rootfs: line 213: has_cmd: command not found
Signed-off-by: Yu Chuan <13186087857@163.com> --- tests/iso2rootfs | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/tests/iso2rootfs b/tests/iso2rootfs index 8625b6484d89..9f2a77de17c6 100755 --- a/tests/iso2rootfs +++ b/tests/iso2rootfs @@ -6,6 +6,8 @@ set -e
umask 0002
+. $LKP_SRC/lib/env.sh + # allow sut os array # - if job's os not in this array, job won't execute ALLOW_OS=( -- 2.23.0
participants (3)
-
Liu Yinsi
-
Wang Chenglong
-
Yu Chuan