multi args changed from os os_arch os_version to os|os_arch|os_version,
and if use os|os_arch|os_version, job yaml must as the first parameter.
Signed-off-by: Liu Yinsi <liuyinsi(a)163.com>
---
.../maintain/walk-os-test/walk-os-iperf-test | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/user-client/maintain/walk-os-test/walk-os-iperf-test b/user-client/maintain/walk-os-test/walk-os-iperf-test
index ed97999..9f75516 100755
--- a/user-client/maintain/walk-os-test/walk-os-iperf-test
+++ b/user-client/maintain/walk-os-test/walk-os-iperf-test
@@ -101,8 +101,8 @@ def run_qemu
end
end
-def submit_job(os_str, os_mount)
- `submit --my-queue 'os os_arch os_version=#{os_str}' 'testbox=#{TESTBOX}' 'os_mount=#{os_mount}' #{TEST_YAML}`
+def submit_job(os_args, os_mount)
+ `submit #{TEST_YAML} --my-queue 'os|os_arch|os_version=#{os_args}' testbox=#{TESTBOX} os_mount=#{os_mount}`
end
def traversal_os_mount
@@ -113,12 +113,13 @@ end
def traversal_test_os(os_mount)
TEST_OS.each do |os_str|
- test_rootfs(os_str, os_mount)
+ os_args = os_str.gsub(' ', '|')
+ test_rootfs(os_args, os_mount)
end
end
-def test_rootfs(os_str, os_mount)
- message = submit_job(os_str, os_mount).chomp
+def test_rootfs(os_args, os_mount)
+ message = submit_job(os_args, os_mount).chomp
job_id = message.split('=')[1]
run_qemu
@@ -128,7 +129,7 @@ def test_rootfs(os_str, os_mount)
find_by_id(job_id)
end
- report_all = job_id.split(', ') + os_str.split + os_mount.split + job_result
+ report_all = job_id.split(', ') + os_args.split + os_mount.split + job_result
write_report(report_all)
end
--
2.23.0