Changeset 588

Show
Ignore:
Timestamp:
03/29/07 11:27:54 (2 years ago)
Author:
sacha
Message:

fix moving result dir.
added prefix to show distribution and release

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/bin/applications/nightly_build_test_infrastructure/chroot.rb

    r586 r588  
    118118   
    119119  # This method copies the HefeWeizen Tests Results to a specified directory. 
    120   def copy_test_result_to target 
    121     run "#{@sudo}mv #{@complete_path}/home/hefeweizen-env/var/log/hefeweizen-test/* #{target}" 
     120  def copy_test_result_to target, prefix 
     121    Dir.glob("#{@complete_path}/home/hefeweizen-env/var/log/hefeweizen-test/*").each{ | dir | 
     122      run "#{@sudo}mv #{dir} #{target}/#{prefix}_#{File.basename dir}" 
     123    } 
    122124  end 
    123125 
  • trunk/bin/applications/nightly_build_test_infrastructure/hefeweizen-test-system.rb

    r586 r588  
    113113       
    114114      @logger.info "Copying test result" 
    115       chroot.copy_test_result_to RESULTS_PATH 
     115      chroot.copy_test_result_to "#{@target_path}/#{RESULTS_PATH}", prefix = chroot_name 
    116116       
    117117      @logger.info "No problems reported. Check the result of the test."