diff options
author | 2021-10-06 07:55:36 +0200 | |
---|---|---|
committer | 2021-10-06 08:38:11 +0000 | |
commit | f3918b44ef47fac582021ae6645d3b8ed1441e0b (patch) | |
tree | e5c8dbd28bff66aac7fd71daa48172be29fb5bb4 /resources/libraries | |
parent | 0ba8945806c1f43c5637c5ba5103f9f362a84d47 (diff) |
Bash: Process job-specs without cores and drivers
- job-spec for trex tests modified
Change-Id: Id04d76648f30baacfa027b182a838d2f681afcec
Signed-off-by: Tibor Frank <tifrank@cisco.com>
(cherry picked from commit 78c59bd99bec595acbd24be8fb1c3337e4b41e56)
Diffstat (limited to 'resources/libraries')
-rw-r--r-- | resources/libraries/bash/function/common.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/libraries/bash/function/common.sh b/resources/libraries/bash/function/common.sh index e56799e63c..85f6e08b68 100644 --- a/resources/libraries/bash/function/common.sh +++ b/resources/libraries/bash/function/common.sh @@ -861,7 +861,9 @@ function select_tags () { awk_nics_sub_cmd+='else if ($9 =="drv_rdma_core") drv ="rdma-";' awk_nics_sub_cmd+='else if ($9 =="drv_af_xdp") drv ="af-xdp-";' awk_nics_sub_cmd+='else drv="";' - awk_nics_sub_cmd+='print "*"$7"-" drv $11"-"$5"."$3"-"$1"-" drv $11"-"$5' + awk_nics_sub_cmd+='if ($1 =="-") cores="";' + awk_nics_sub_cmd+='else cores=$1;' + awk_nics_sub_cmd+='print "*"$7"-" drv $11"-"$5"."$3"-" cores "-" drv $11"-"$5' # Tag file directory shorthand. tfd="${JOB_SPECS_DIR}" |