From patchwork Thu Jul 7 18:47:40 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Jackson X-Patchwork-Id: 9219435 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7F15760467 for ; Thu, 7 Jul 2016 18:50:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7000528408 for ; Thu, 7 Jul 2016 18:50:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 62E8F2848F; Thu, 7 Jul 2016 18:50:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B98EB28408 for ; Thu, 7 Jul 2016 18:50:12 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bLEL5-0004cl-7W; Thu, 07 Jul 2016 18:47:55 +0000 Received: from mail6.bemta6.messagelabs.com ([85.158.143.247]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bLEL3-0004cZ-93 for xen-devel@lists.xenproject.org; Thu, 07 Jul 2016 18:47:53 +0000 Received: from [85.158.143.35] by server-1.bemta-6.messagelabs.com id 74/16-09256-8D3AE775; Thu, 07 Jul 2016 18:47:52 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplkeJIrShJLcpLzFFi42JxWrrBXvf64rp wg5YuS4vvWyYzOTB6HP5whSWAMYo1My8pvyKBNePemt1MBR85Kz6u6WBsYPzO3sXIySEh4C/x du1sZhCbTUBXomnLX7YuRg4OEQEVidt7DUDCzAIlEot3TQErFxZwkvhzfhUTiM0CVPLqajuYz SvgKdFzfDIjxEg5ifPHf4KN5BTwkvjS1gBmCwHVtE9fzggyXkhATWLu+niIVkGJkzOfsECskp A4+OIFM0iJhAC3xN9u+wmMfLOQVM1CUrWAkWkVo3pxalFZapGukV5SUWZ6RkluYmaOrqGBmV5 uanFxYnpqTmJSsV5yfu4mRmAwMQDBDsZlf50OMUpyMCmJ8ir414UL8SXlp1RmJBZnxBeV5qQW H2KU4eBQkuBlXwSUEyxKTU+tSMvMAYY1TFqCg0dJhLcVJM1bXJCYW5yZDpE6xagoJc4bDJIQA ElklObBtcFi6RKjrJQwLyPQIUI8BalFuZklqPKvGMU5GJWEeUtBpvBk5pXATX8FtJgJaPFPl2 qQxSWJCCmpBsbtCld9lzXtPVO/98umdwdfq+2SKPiw1dlVX2Ou7sVEy91PayTUj+6c437HY1r 80/+3N9c5bnC3D1a49vjQFxE53+mNR0//jDttsPsb5/Fvj46vNS42MLh7MTL2YWpZ4mqF6OlH wl5Zih3guqg3q3HKNIPUxVVHPB4ffeDx1mZDz9vkkI6TMxqnKrEUZyQaajEXFScCAGNZRTSgA gAA X-Env-Sender: prvs=9898cd356=Ian.Jackson@citrix.com X-Msg-Ref: server-8.tower-21.messagelabs.com!1467917270!22771044!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 8.77; banners=-,-,- X-VirusChecked: Checked Received: (qmail 20246 invoked from network); 7 Jul 2016 18:47:51 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-8.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 7 Jul 2016 18:47:51 -0000 X-IronPort-AV: E=Sophos;i="5.28,324,1464652800"; d="scan'208";a="371876149" From: Ian Jackson To: Date: Thu, 7 Jul 2016 19:47:40 +0100 Message-ID: <1467917260-21941-2-git-send-email-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1467917260-21941-1-git-send-email-ian.jackson@eu.citrix.com> References: <1467917260-21941-1-git-send-email-ian.jackson@eu.citrix.com> MIME-Version: 1.0 X-DLP: MIA1 Cc: Wei Liu , Ian Jackson Subject: [Xen-devel] [OSSTEST PATCH 2/2] DO NOT APPLY make-flight-substep-test X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP This is a simple test case for substeps. Signed-off-by: Ian Jackson CC: Wei Liu --- make-flight-substep-test | 14 ++++++++++++++ sg-run-job | 7 +++++++ 2 files changed, 21 insertions(+) create mode 100755 make-flight-substep-test diff --git a/make-flight-substep-test b/make-flight-substep-test new file mode 100755 index 0000000..44b0451 --- /dev/null +++ b/make-flight-substep-test @@ -0,0 +1,14 @@ +#!/bin/sh +set -e + +flight=`./cs-flight-create play xen-unstable` + +runvars=bogus=0 + +for j in test-1 test-2; do + ./cs-job-create $flight $j test-substeps \ + $runvars + runvars=bogus=1 +done + +echo $flight diff --git a/sg-run-job b/sg-run-job index 60855b4..05e7725 100755 --- a/sg-run-job +++ b/sg-run-job @@ -423,6 +423,13 @@ proc run-job/test-rumpuserxen {} { ts-guest-destroy-hard host $g + } +proc need-hosts/test-substeps {} { } +proc run-job/test-substeps {} { + run-ts . = ts-substep-test suba:foo 1 subb:wombat suba=pass + run-ts . =.2 ts-substep-test subx:foo 1 subx=fail + run-ts . =.3 ts-substep-test ,bogus subb=pass +} + if {[file exists sg-run-job-adhoc]} { source sg-run-job-adhoc }