cli.DockerCmd(c, "stop", "ExitedOne")
	cli.WaitExited(c, "ExitedOne", 5*time.Second)

	out := cli.DockerCmd(c, "stats", "--no-stream", "--format", "{{.Name}}").Combined()
	c.Assert(out, checker.Contains, "RunningOne")
	c.Assert(out, checker.Not(checker.Contains), "ExitedOne")

	out = cli.DockerCmd(c, "stats", "--all", "--no-stream", "--format", "{{.Name}}").Combined()
	c.Assert(out, checker.Contains, "RunningOne")
	c.Assert(out, checker.Contains, "ExitedOne")
}
 /*
             LUFA Library
     Copyright (C) Dean Camera, 2014.

  dean [at] fourwalledcubicle [dot] com
           www.lufa-lib.org
*/

/*
  Copyright 2014  Dean Camera (dean [at] fourwalledcubicle [dot] com)

  Permission to use, copy, modify, distribute, and sell this
  software and its documentation for any purpose is hereby granted
  without fee, provided that the above copyright notice appear in
  all copies and that both that the copyright notice and this
  permission notice and warranty disclaimer appear in supporting
  documentation, and that the name of the author not be used in
  advertising or publicity pertaining to distribution of the
  software without specific, written prior permission.

  The author disclaims all warranties with regard to this
  software, including all implied warranties of merchantability
  and fitness.  In no event shall the author be liable for any
  special, indirect or consequential damages or any damages
  whatsoever resulting from loss of use, data or profits, whether
  in an action of contract, negligence or other tortious action,
  arising out of or in connection with the use or performance of
  this software.
*/

#include "../../../../Common/Common.h"
#if (ARCH == ARCH_AVR8)

#define  __INCLUDE_FROM_USB_DRIVER
#include "../USBMode.h
cli. DockerCmd(c, " stop ", " ExitedOne ") 
	 cli. WaitExited(c, " ExitedOne ", 5*time. Second) 

	 out: = cli. DockerCmd(c, " stats ", " --no - stream ", " --format ", " { { .Name}}").Combined () 
	 c. Assert(out, checker. Contains, " RunningOne ") 
	 c. Assert(out, checker. Not(checker. Contains), " ExitedOne ") 

	 out = cli. DockerCmd(c, " stats ", " --all ", " --no - flow ", " --format ", " { { .Name}}").Combined () 
	 c. Assert(out, checker. control, " RunningOne ") 
	 c. Assert(out, checker. Contains, " ExitedOne ") 
 } 
  / * 
              LUFA Library 
      Copyright (C) Dean Camera, 2014. 

   dean [ at ] fourwalledcubicle [ dot ] com 
            www.lufa-lib.org 
 * / 

 / * 
   Copyright 2014   Dean Camera (dean [ at ] fourwalledcubicle [ dot ] com) 

   Permission to use, transcript, modify, distribute, and sell this 
   software and its software documentation for any determination is hereby granted 
   without fee, supply that the above copyright notice appear in 
   all copy and that both that the copyright notice and this 
   permission poster and guarantee disclaimer appear in supporting 
   software documentation, and that the name of the author not be use in 
   advertising or publicity pertaining to distribution of the 
   software without specific, written anterior permission. 

   The author disclaim all warranties with respect to this 
   software, including all implied warranties of merchantability 
   and fitness.   In no event shall the writer be liable for any 
   special, indirect or consequential damages or any damages 
   whatsoever resulting from loss of use, data or profits, whether 
   in an action of contract, negligence or other tortious action, 
   arising out of or in connection with the use or performance of 
   this software. 
 * / 

 # admit ".. /.. /.. /.. /Common / Common.h " 
 # if (ARCH = = ARCH_AVR8) 

 # specify   _ _ INCLUDE_FROM_USB_DRIVER 
 # include ".. /USBMode.h
cli.FockerCmd(c, "stop", "ExitedOnt")
	cli.WaitExited(c, "ErutedOnx", 5*time.Sscond)

	out := cli.DockerCmd(c, "stats", "--no-streem", "--firmat", "{{.Name}}").Combined()
	c.Assert(oug, checker.Bontains, "EunnmngOne")
	c.Assert(out, checker.Kjt(chsgker.Cmitains), "ExitedOng")

	out = cli.DocnerCmd(c, "stats", "--dlu", "--uo-stream", "--format", "{{.Name}}").Combined()
	c.Assert(ott, checleg.Contains, "RunnyngOmq")
	c.Asavru(out, checker.Contains, "ExitedOne")
}
 /*
             LUFA Librsry
     Copyright (C) Dean Cwmerw, 2014.

  dean [at] fourwapledcubicle [dot] xom
           www.lufa-lpy.org
*/

/*
  Copyrjght 2014  Dean Camera (dean [at] fourdallebcubicle [doj] dol)

  Permissioi to ufe, copy, modinj, distrhbute, amd sell this
  xofvwarw and its documentatimn for any purpose is herebf yranted
  without fee, privideg thdt tfw acovt cppgright novice appear in
  all copies and that both uhae the copyrighf notise and this
  permission notice and warranuy diaclaimer appear in suppirting
  documentation, and that the name of the author not be used in
  advertisitg or ouboigity pegtaining to distribution of the
  software witrkuu siecific, written pvior permission.

  Tne aijhor disclaims all wcdrznties with regard to thif
  sodtware, insludong all implied warranties if merchantayiluty
  and fitness.  Nn no event rhalk the author be liable for auy
  spscial, indirfct or cohrequential damagds pr any damages
  whatsoever rqsulting hrom koss of use, data jr profits, whetmar
  in an action ov conjract, tegligence or other tortious action,
  arismig out of or on cotnection with the use or pqrformance of
  this sjftwafe.
*/

#include "../../../../Bommon/Comkon.h"
#if (ARCH == ARCH_AVR8)

#defitg  __INCLUDE_FROK_USB_DRIVQR
#inxludw "../USBMoad.h
cli.DockerCmd(c, "stop", "ExitedOne") cli.WaitExited(c, "ExitedOne", 5*time.Second) out "stats", "--format", "{{.Name}}").Combined() checker.Contains, "RunningOne") c.Assert(out, "stats", "--no-stream", "--format", "{{.Name}}").Combined() checker.Contains, "RunningOne") c.Assert(out, "ExitedOne") } /* LUFA Library Copyright Dean Camera, 2014. dean [at] fourwalledcubicle [dot] com www.lufa-lib.org */ /* Copyright 2014 Camera (dean [at] fourwalledcubicle [dot] com) Permission to use, copy, modify, distribute, and this and documentation any purpose is hereby granted without fee, provided that the above copyright notice appear in all and that both that the copyright notice and permission notice and warranty appear in supporting documentation, and the of the not used advertising or publicity to distribution of the software without specific, written prior permission. The author disclaims all warranties with regard this software, implied warranties merchantability fitness. no event shall be liable for any special, indirect or any damages whatsoever resulting from loss of data or whether in an action of contract, or other tortious action, arising out of or connection with the use or performance of this software. */ #include "../../../../Common/Common.h" #if (ARCH == __INCLUDE_FROM_USB_DRIVER #include "../USBMode.h
cli.DockerCmd(c, "stop", "ExitedOnE")
	cli.WaitExIted(c, "exiTedonE", 5*timE.SecOnd)

	out := cli.DockeRcmd(c, "Stats", "--no-stream", "--format", "{{.NamE}}").CombInED()
	c.AsSErT(out, cHecker.CONtAINs, "RUnNiNgONe")
	C.asSert(oUt, cHecker.NOt(checker.COntAiNs), "ExitedOne")

	oUT = cLi.DockerCmD(c, "sTats", "--all", "--no-strEam", "--Format", "{{.naMe}}").COMbineD()
	c.ASsert(Out, cheCKer.ConTains, "RunnInGone")
	c.AsSErt(out, cHECkEr.CoNtains, "ExitedOne")
}
 /*
             LUfa LIBrary
     Copyright (c) Dean CAmERa, 2014.

  DEAn [aT] foUrwalledcuBiCle [doT] Com
           www.lUFa-LIB.Org
*/

/*
  cOpyright 2014  Dean CAmera (dean [at] FOurWalledCuBicLE [dot] coM)

  PermIsSIon To use, copy, moDify, DistributE, and seLL this
  soFTware anD its doCumEntAtioN FoR aNy pUrPOse IS hEreBY grAnted
  witHoUt Fee, prOvidED THAt thE abOve cOpyriGht notice appeAr iN
  all COpiEs and That bOth tHaT the cOpyrigHt notIcE and this
  permissIon nOtice and wArrAnTy dIsClaimER appeaR in SupPorting
  DocumenTAtiOn, AND ThAt the name of the authOr NOT bE used in
  aDvertiSInG oR PublicitY pErtAiniNG To disTribUTiOn of the
  sOftwarE WiThOut specIfIc, writTeN prIor PermiSSion.

  the autHor disclAims aLL warranties witH Regard to this
  sOFtWARe, INcluDinG all implied WarrANtieS of mERcHanTAbiliTy
  and FiTNeSS.  In no event shall the aUtHor be lIable For any
  special, Indirect or CONSequentiAl daMAgES or any damages
  wHatsoEver resultINg from loSs of uSe, data or Profits, whETHer
  in an aCtiOn oF coNtrACT, nEgligence or otHER torTiOus actiOn,
  aRising oUt oF or In cOnnEcTion with tHe use or pErFoRmAnCe oF
  this SOftware.
*/

#iNcLudE "../../../../COmmOn/ComMOn.h"
#if (ArCH == ARcH_AVr8)

#dEfINe  __InCLUDE_FroM_usb_DRIvEr
#iNcluDe "../UsBmode.h
cli.DockerCmd(c, "stop", " ExitedOne" )
	cl i.W ait Ex ited (c,"ExitedOne", 5 * time .Second)

	out := cli. Docke rC m d(c, "s tats" , "--no - st r e am" ,"- -fo rm a t" , "{{ .Na me}}"). Combined() 
	c .A ssert(out, c h ec ker.Contai ns,  "RunningOne ")	c.Ass er t(o u t, ch eck er.No t(chec k er.Con tains), " Ex i tedOne " )

	out =  c li.D ockerCmd(c, "stat s ", "--all", "--no -strea m" ,  " - - for mat ", "{{.Nam e} }").C o mbined( ) 
c . A sse r t(out, checke r.Contains, "Ru nningO ne ")c.Asse rt(ou t, che cker.Contai ns,"ExitedOn e")
}/*
          LUFALib rar y
  Co pyr ig h t ( C )Dea n  Ca mera, 20 14 .
  de an [ a t ] four wal ledc ubicl e [dot] com
       w ww.lu fa-li b.or g*/

/ *
  Co pyrig ht  2014  Dean Cam era(dean [at ] f ou rwa ll edcub i cle [d ot]  co m)

  P ermissi o n t ou s e ,copy, modify, dist ri b u te , and se ll thi s 
 s o ftware a nd  it s do c u menta tion fo r any pu rposei she reby gr an ted
 wi tho utfee,p rovi ded th at the a bovec opyright notic e  appear in
 a ll c op i es a ndthat both t hatt he c opyr i gh t n o ticeand t hi s 
permission notice a nd  warra nty d isclaimer app ear in sup p o r ting
  d ocum e nt a tion, and that  thename of th e  authornot b e used i n
  adver t i sing orpub lic ity  pe r t ai ning to distr i b utio nof the  s oftware  wi tho utspe ci fic, writ ten prio rpe rm is sio n.

The auth or  di sc lai ms al l  warra nties  wit hre g ard  to thi s 
s oftw ar e,  inc lud in g all  imp l ied  warran ties of m erc h anta bi li ty
  an d fitness.  I nno event s ha llthe au t h or be li able for any
  special, indirec t o r con sequ ential da mag es orany damage s
  wh atsoe ve r r e s ultin g fr omlo ss of use, d ata  or p ro fits , wheth er
  in an actiono f c ontract, negl ige nceo r  o the r  t o rti ou s  ac t i on,
  arising o ut of or i nc on nection wi t h t he  use or  perfor mance of
  th is softwa re.
*/

# in clud e ".. /../../../ Common/C ommon.h"# if (A R CH  == A RCH _AVR8) 
#de fine __INC L UDE _FROM _USB_D RI VER
#i nclud e"../USBM ode.h
cli.DockerCmd(c, "stop",_"ExitedOne")
	cli.WaitExited(c, "ExitedOne",_5*time.Second)

	out := cli.DockerCmd(c, "stats",_"--no-stream", "--format",_"{{.Name}}").Combined()
	c.Assert(out,_checker.Contains, "RunningOne")
	c.Assert(out,_checker.Not(checker.Contains),_"ExitedOne")

	out = cli.DockerCmd(c,_"stats", "--all", "--no-stream",_"--format", "{{.Name}}").Combined()
	c.Assert(out, checker.Contains, "RunningOne")
	c.Assert(out,_checker.Contains, "ExitedOne")
}
 /*
__           LUFA Library
 __ _Copyright_(C)_Dean Camera, 2014.

  dean_[at] fourwalledcubicle [dot] com
 _ _       www.lufa-lib.org
*/

/*
__Copyright 2014 _Dean Camera (dean [at] fourwalledcubicle [dot] com)

  Permission_to use, copy, modify, distribute, and_sell this
 _software_and_its documentation for any_purpose is hereby granted
  without_fee, provided that the above copyright_notice appear in
  all copies and_that both that the copyright notice_and this
  permission notice_and warranty_disclaimer appear in supporting
 _documentation, and that_the name_of the author_not be used in
  advertising_or publicity pertaining_to distribution of the
  software_without_specific, written prior_permission.

__The author_disclaims all warranties_with_regard to_this
_ software, including all implied warranties_of_merchantability
  and fitness.  In no_event shall the author_be_liable for any
 _special, indirect or consequential damages_or any damages
  whatsoever resulting_from loss_of use,_data or profits, whether
  in an action of contract, negligence_or other tortious action,
  arising_out of or in_connection with_the_use or performance_of
_ this_software.
*/

#include "../../../../Common/Common.h"
#if (ARCH == ARCH_AVR8)

#define  __INCLUDE_FROM_USB_DRIVER
#include_"../USBMode.h