Skip to content

Instantly share code, notes, and snippets.

View spedepekka's full-sized avatar

Jarno Tuovinen spedepekka

View GitHub Profile
@spedepekka
spedepekka / combine-junit-xml.sh
Created July 9, 2015 12:59
Combine multiple JUnit XML files from folder into single XML file
#!/bin/bash
#
#
# Script combines given JUnit XML files into one.
#
# Script assumes that file begins with XML header.
# Script will copy content between <testsuite> tags
# to new file with XML header and <testsuites> tags.
# Script will not affect original files, but it will
# overwrite output file contents. Script searches all
@spedepekka
spedepekka / run-loop-version-compare
Created January 15, 2015 07:57
run_loop 1.2.1 version compare problem
============ Test ===============
require 'run_loop'
def compare(a, b)
a = RunLoop::Version.new(a)
b = RunLoop::Version.new(b)
if a < b
puts "#{a} < #{b}"
elsif a > b