Skip to content

Commit

Permalink
test28
Browse files Browse the repository at this point in the history
Signed-off-by: Corey Hemminger <[email protected]>
  • Loading branch information
Stromweld committed Apr 4, 2024
1 parent 675663e commit 38d71d7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pkr-bld-qemu-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
eval "$(chef shell-init bash)"
gem build bento.gemspec
gem install bento-*.gem
df -h
- name: Bento build
run: |
eval "$(chef shell-init bash)"
Expand All @@ -75,6 +76,7 @@ jobs:
- name: Bento Test
run: |
eval "$(chef shell-init bash)"
df -h
bento test libvirt
- name: Upload build artifact
uses: actions/upload-artifact@main
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pkr-bld-virtualbox-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
eval "$(chef shell-init bash)"
gem build bento.gemspec
gem install bento-*.gem
df -h
- name: Bento build
run: |
eval "$(chef shell-init bash)"
Expand All @@ -67,6 +68,7 @@ jobs:
- name: Bento Test
run: |
eval "$(chef shell-init bash)"
df -h
bento test ${{ matrix.os }}
- name: Upload build artifact
uses: actions/upload-artifact@main
Expand Down
6 changes: 3 additions & 3 deletions lib/bento/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def initialize(opts)
@no_shared = opts.no_shared
@provisioner = opts.provisioner.nil? ? 'shell' : opts.provisioner
@errors = []
@regexp = opts.regexp
@regexp = opts.regexp || nil
end

def start
Expand Down Expand Up @@ -72,8 +72,8 @@ def test_box(md_json)

Dir.chdir(temp_dir)
banner("Test kitchen file located in #{temp_dir}")
if @regexp
test = Mixlib::ShellOut.new("kitchen test #{@regexp}", timeout: 900, live_stream: STDOUT)
if regexp
test = Mixlib::ShellOut.new("kitchen test #{regexp}", timeout: 900, live_stream: STDOUT)
test.run_command
if test.error?
test.stderr
Expand Down

0 comments on commit 38d71d7

Please sign in to comment.