On Mon, Oct 12, 2020 at 06:57:11PM +0800, Liu Yinsi wrote:
- submit job
- run docker test
Signed-off-by: Liu Yinsi liuyinsi@163.com
sparrow/6-test/docker | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/sparrow/6-test/docker b/sparrow/6-test/docker index 3d6796d..ab825d3 100755 --- a/sparrow/6-test/docker +++ b/sparrow/6-test/docker @@ -1,7 +1,13 @@ -#!/bin/bash -e +#!/usr/bin/env ruby # SPDX-License-Identifier: MulanPSL-2.0+ # Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved. +# frozen_string_literal: true
-## TODO -# 1.submit a job -# 2.run docker.sh +require_relative '../../providers/docker/docker'
+def run_job(hostname)
- system "submit -s 'testbox: #{hostname}' #{ENV['CCI_SRC']}/user-client/jobs/iperf-sparrow.yaml"
iperf-sparrow.yaml should pay attention to these field: os: default is debian os_version: default is sid docker_image: default is centos:7
Thanks, Shenwei
- main "#{hostname}"
+end
+run_job "dc-1g"
2.23.0