parameters: ()
docstring: Generate the test package script running in docker container
docstring_summary: Generate the test package script running in docker container
docstring_tokens: Generate the test package script running in docker container
function: def command_test_package_centos70():
      """
      Generate the test package script running in docker container
      """
      pkg_list = glob.glob(os.path.join(working_dir, 'package/*centos7.0*'))
      if not pkg_list:
          raise RuntimeError("Can not found centos7.0 package! May be build fail?")
      pkg = ntpath.basename(pkg_list[0])
      cmd_dir = os.path.join(working_dir, 'command')
      test_dir = os.path.join(dest_dir, 'source/test')
      f = open(os.path.join(cmd_dir, 'test_package_centos70.sh'), 'w')
      f.write('#!/bin/bash\n')
      f.write('yum -y localinstall %s/package/%s --nogpgcheck\n' % (dest_dir, pkg))
      command_test_package(f)
      f.close()
function_tokens: def command_test_package_centos70 ( ) : pkg_list = glob . glob ( os . path . join ( working_dir , 'package/*centos7.0*' ) ) if not pkg_list : raise RuntimeError ( "Can not found centos7.0 package! May be build fail?" ) pkg = ntpath . basename ( pkg_list [ 0 ] ) cmd_dir = os . path . join ( working_dir , 'command' ) test_dir = os . path . join ( dest_dir , 'source/test' ) f = open ( os . path . join ( cmd_dir , 'test_package_centos70.sh' ) , 'w' ) f . write ( '#!/bin/bash\n' ) f . write ( 'yum -y localinstall %s/package/%s --nogpgcheck\n' % ( dest_dir , pkg ) ) command_test_package ( f ) f . close ( )