CR: Added runnow option to producer commandline

"Sujeet Kharkar" <[email protected]>
Newsgroups gmane.comp.multimedia.helix.devel
Message-ID <00c101c9bd62$e9e28130$70effea9@sujeetlaptop>
Synopsis

============

QA needs a commandline option to tell producer to create job and run it.

 

Reviewed by: Eswar

 

Branches

=========

Head

 

Description

==============

Added new boolen option runnow, which if given will run job created with -cj
option.

 

Files affected

==================

producerapps/cmdproducer/enccmdln.cpp

producerapps/cmdproducer/enccmdln.h

producerapps/cmdproducer/session.cpp

 

Testing

=================

Verified that with specifying runnow and not specifying runnow.

 

QA Hints

=============

Use -runnow along with -cj and confirm that job is created and run.

 

Index: enccmdln.cpp

===================================================================

RCS file: /cvsroot/producerapps/cmdproducer/enccmdln.cpp,v

retrieving revision 1.40

diff -u -r1.40 enccmdln.cpp

--- enccmdln.cpp  16 Feb 2009 02:53:47 -0000    1.40

+++ enccmdln.cpp  14 Apr 2009 23:30:02 -0000

@@ -504,7 +504,13 @@

         "Disable Load Management",

         &bDisableLoadManagement

      ));

-    

+

+    cmd.AddOption(new COptBOOL2(

+        "runnow",

+        "Run Created Job",

+        &m_bRunCreatedJob

+     ));

+

     cmd.AddOption(new COptStringAllLower(

         "lmJitterThreshold",

         "Jitter threshold in hhh:mm:ss format.  This is used by the load
management to reduce the affects of jitter and must be less than the delay
threshold.",

@@ -1243,6 +1249,7 @@

     m_bDevices = FALSE;

     m_bAudDefs = FALSE;

     bCreateJobFile = FALSE;

+    m_bRunCreatedJob = FALSE;

     m_bBCastDefs = FALSE;

     

     m_bQuiet = FALSE;

Index: enccmdln.h

===================================================================

RCS file: /cvsroot/producerapps/cmdproducer/enccmdln.h,v

retrieving revision 1.17

diff -u -r1.17 enccmdln.h

--- enccmdln.h    16 Feb 2009 02:53:47 -0000    1.17

+++ enccmdln.h    14 Apr 2009 23:30:02 -0000

@@ -142,6 +142,7 @@

     realstring strOutputJobFile;

     eFILETYPE eOutputJobType;

     realstring strOutputJobDirectory;

+    HXBOOL m_bRunCreatedJob;

 

 

     ///////////////////////////////////////////////////////

Index: session.cpp

===================================================================

RCS file: /cvsroot/producerapps/cmdproducer/session.cpp,v

retrieving revision 1.147

diff -u -r1.147 session.cpp

--- session.cpp   10 Mar 2009 20:12:30 -0000    1.147

+++ session.cpp   14 Apr 2009 23:30:02 -0000

@@ -1355,7 +1355,8 @@

            HXTLOG_APPROVED(LC_APP_ERROR, CMDLINE, 10530, "Unable to write
job file %s", m_Params.strOutputJobFile.c_str());

          }

      }

-     else

+     

+     if (!m_Params.bCreateJobFile || (m_Params.bCreateJobFile &&
m_Params.m_bRunCreatedJob))

      {

          res= StartJob();

          HX_ASSERT(res == HXR_OK);

_______________________________________________
Helix-client-dev mailing list
[email protected]
http://lists.helixcommunity.org/mailman/listinfo/helix-client-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.