Ńň
ýÉŞWc           @   s   d  d k  l Z l  Z  l Z d  d k Z d  d k Z d  d k l Z d  d k l Z d e  f d     YZ e d j o e i	   n d S(   i˙˙˙˙(   t   InstallMockt   InstallTestBaset
   InstallOutN(   t   InstallHelper(   t   InstallComponentCollectort   InstallTestTempc           B   s\   e  Z d  Z g  Z d   Z d   Z d   Z e e e e d  Z d e
 d  Z d   Z RS(   i    c         C   s   |  i  d  } | } | GHd  S(   Ns   Input: (   t   getRawInput(   t   selft   allowSelectt   reselect(    (    si   /home/jenkins/workspace/prepack-aio-release-4.2/prepack-aio/src/main/resources/scripts/installTestTemp.pyt   _testRawInput   s    c         C   s4   y t  |  SWn t j
 o } |  i |  SXd  S(   N(   t	   raw_inputt   IOErrorR   (   R   t   messaget   EOFError(    (    si   /home/jenkins/workspace/prepack-aio-release-4.2/prepack-aio/src/main/resources/scripts/installTestTemp.pyt   _getRawInput   s    c         C   sO   |  i  d d  } |  i d d d d d d g  |  i |  |  i |  d  S(   Nt    s   1.1s   1 2t   1t   yes(   t   _createInstallert   _resetInputst
   _doInstall(   R   t	   installer(    (    si   /home/jenkins/workspace/prepack-aio-release-4.2/prepack-aio/src/main/resources/scripts/installTestTemp.pyt   testFreshInstallOnScratch   s    c   	      C   s;   |  i  |  } t | | | | | |  } |  i |  | S(   N(   t   _constructSysInfoFileR    t   _mockPrepackDecider(	   R   t   modet   versiont   backupStartt   backupFinisht   deployStartt   deployFinisht   sysInfoFileR   (    (    si   /home/jenkins/workspace/prepack-aio-release-4.2/prepack-aio/src/main/resources/scripts/installTestTemp.pyR   !   s    c         C   sX   d  } d } | o |  i   } t | d  } n | i |  | o | i   n | S(   NR   t   a(   t   Nonet   _getInstallLogFileNameR   t   installt   _restore_standard_output_(   R   R   t   preConfiguredFilet   outputToFilet   logFilet   logFileName(    (    si   /home/jenkins/workspace/prepack-aio-release-4.2/prepack-aio/src/main/resources/scripts/installTestTemp.pyR   (   s    c         C   s˙  h d d g d 6h d d 6d d d d	 g d
 6d 6h d d 6d d d g d
 6d 6h d d 6d d d d d g d
 6d 6h d d 6d g d
 6d 6h d d 6d	 6h d d 6d 6h d d 6d 6h d d 6d 6h d d 6d 6h d d 6d 6h d d 6d 6h d d 6d 6h d d 6d 6h d d 6d 6h d  d 6d! d" d# d$ d% d& g d
 6d 6h d! d 6d' g d( 6d! 6h d) d 6d" 6h d# d 6d# 6h d* d 6d$ 6h d+ d 6d% 6h d& d 6d' d, g d- 6d' d, g d. 6t  d/ 6d& 6h d0 d 6d1 6} |  i t i d2 } t i | |  | t _ d  S(3   Nt   DOWNSTREAMSt   DEVICESt   selectionItemst   Devicest   displayNamet   QCt	   TRANSCODEt
   ENCRYPTIONt   COMBINERt
   selectionst   BATONt   CERIFYt   VERIFIERt
   Transcodert   ENVIVIOt	   ELEMENTALt   TITANt   RHOZETt   DIGITALRAPIDt	   Encryptort
   VERIMATRIXt   Combinert   Batont   Cerifyt   Verifiert   Enviviot	   Elementalt   Titant   Rhozett   DigitalRapidt
   Verimatrixt   Downstreamst   AMSt	   MEDIAROOMt   OTTt	   MSMW_MDMSt   MSMW_OSt   XPMPs   DEVICES/COMBINERt   unAvailableComponentst	   Mediarooms   Msmw with MDMSs   Msmw with Openstreams   DEVICES/QC/VERIFIERt   availableComponentst   autoSelectComponentst   singleSelections   Back To Lastt   BACKs   component-selections.json(   t   Truet   TEST_TEMP_DIRt   ost   sepR   t   writeJsonToFileR   t   COMPONENT_SELECTION_CONFIG(   R   R3   t   selectionFilePath(    (    si   /home/jenkins/workspace/prepack-aio-release-4.2/prepack-aio/src/main/resources/scripts/installTestTemp.pyt   _initComponentSelection3   s    


N(   t   __name__t
   __module__t   sequencet   inputsBySequenceR
   R   R   RV   R   R"   t   FalseR   R]   (    (    (    si   /home/jenkins/workspace/prepack-aio-release-4.2/prepack-aio/src/main/resources/scripts/installTestTemp.pyR      s   			t   __main__(
   R   R    R   t   unittestRX   R   R   R   R^   t   main(    (    (    si   /home/jenkins/workspace/prepack-aio-release-4.2/prepack-aio/src/main/resources/scripts/installTestTemp.pyt   <module>   s   ¸