1
2
3
4
5
6
7
8
9
10
|
#! /usr/bin/env ruby
require "#{ENV['MT_RUN_AREA_HOME']}/../supportfiles/ruby/librunscript.rb"
# run_record(stepname, cmd) - will record in db if exit code of script was zero or not
run_and_record('create db',"sqlite3 testing.db << EOF\ncreate table if not exists blah(id INTEGER PRIMARY KEY,name TEXT);\n.q\nEOF","")
if (! File.exists?("../../runfirst/I_was_here"))
puts "ERROR: This test was started before the prerequisites ran!"
system "megatest -test-status :state INCOMPLETE :status FAIL"
|
|
|
1
2
3
4
5
6
7
8
9
10
|
#! /usr/bin/env ruby
require "#{ENV['MT_RUN_AREA_HOME']}/../resources/ruby/librunscript.rb"
# run_record(stepname, cmd) - will record in db if exit code of script was zero or not
run_and_record('create db',"sqlite3 testing.db << EOF\ncreate table if not exists blah(id INTEGER PRIMARY KEY,name TEXT);\n.q\nEOF","")
if (! File.exists?("../../runfirst/I_was_here"))
puts "ERROR: This test was started before the prerequisites ran!"
system "megatest -test-status :state INCOMPLETE :status FAIL"
|