Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion bin/auto_hck
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ module AutoHCK
run do
cli = CLI.new
cli.parse(ARGV)
session_path = cli.test.latest_session ? "#{Config.read['workspace_path']}/latest" : cli.test.session

session = if session_path
Session.load(session_path, cli.common.workspace_path)
else
Session.new(cli: cli)
end

ENV.store 'LC_ALL', 'en_US.UTF-8'

Expand All @@ -18,7 +25,7 @@ module AutoHCK
Thread.report_on_exception = false

ResourceScope.open do |scope|
@project = Project.new(scope, cli)
@project = Project.new(scope, session)
Trap.project = @project
@project.run if @project.prepare
rescue StandardError => e
Expand Down
1 change: 1 addition & 0 deletions lib/all.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ module AutoHCK
autoload_relative :PhysHCK, 'setupmanagers/physhck/physhck'
autoload_relative :Playlist, 'engines/hcktest/playlist'
autoload_relative :Project, 'project'
autoload_relative :Session, 'session'
autoload_relative :QemuHCK, 'setupmanagers/qemuhck/qemuhck'
autoload_relative :QemuHCKError, 'setupmanagers/qemuhck/exceptions'
autoload_relative :QemuMachine, 'setupmanagers/qemuhck/qemu_machine'
Expand Down
Loading
Loading