From 9b911664066857f437fa33216ad4adbc00c8f268 Mon Sep 17 00:00:00 2001 From: Archana Shinde Date: Tue, 20 Jun 2017 15:59:03 -0700 Subject: [PATCH] tests: Fix functional tests to include workload directory The runtime directory should now include "workloads" directory. Fix functional tests to address this. Signed-off-by: Archana Shinde --- tests/functional/common.bash.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/functional/common.bash.in b/tests/functional/common.bash.in index adfec7d9..512c848b 100644 --- a/tests/functional/common.bash.in +++ b/tests/functional/common.bash.in @@ -158,7 +158,8 @@ function verify_runtime_dirs() [ "${lines[3]}" = "hypervisor.sock" ] [ "${lines[4]}" = "process.sock" ] [ "${lines[5]}" = "state.json" ] - [ "${lines[6]}" = "" ] + [ "${lines[6]}" = "workload" ] + [ "${lines[7]}" = "" ] [ -S "$console_sock" ] [ -S "$ga_ctl_sock" ] @@ -168,7 +169,8 @@ function verify_runtime_dirs() elif [ "$state" = "killed" ] then [ "${lines[0]}" = "state.json" ] - [ "${lines[1]}" = "" ] + [ "${lines[1]}" = "workload" ] + [ "${lines[2]}" = "" ] else log_msg "Invalid state: '$state'" false