lib/autoproj/test.rb in autoproj-2.6.1 vs lib/autoproj/test.rb in autoproj-2.7.0
- old
+ new
@@ -392,12 +392,29 @@
if !system('git', 'commit', '-m', 'add source.yml', chdir: dir, out: :close)
raise "failed to commit the source.yml"
end
dir
end
+
+ def ws_create_package_set_file(pkg_set, name, content)
+ path = File.join(pkg_set.raw_local_dir, name)
+ FileUtils.mkdir_p File.dirname(path)
+ File.open(path, 'w') do |io|
+ io.write content
+ end
+ path
+ end
+
+ def ws_create_package_file(pkg, name, content)
+ path = File.join(pkg.autobuild.srcdir, name)
+ FileUtils.mkdir_p File.dirname(path)
+ File.open(path, 'w') do |io|
+ io.write content
+ end
+ path
+ end
end
end
class Minitest::Test
include Autoproj::SelfTest
end
-