Skip to content

Instantly share code, notes, and snippets.

@junaruga
Created September 2, 2020 08:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save junaruga/ebb7e58f07ddcf20b5f714fe80f75e69 to your computer and use it in GitHub Desktop.
Save junaruga/ebb7e58f07ddcf20b5f714fe80f75e69 to your computer and use it in GitHub Desktop.
$ tmt run -avv provision -h container -i fedora:rawhide execute -h beakerlib.tmt 2>&1 | tee tmt_run_container_rawhide.log
$ cat tmt_run_container_rawhide.log
/var/tmp/tmt/run-015
Found 1 plan.
/plans/default
discover
how: fmf
directory: /home/jaruga/git/pkg/fed/tests/ruby
summary: 2 tests selected
/run-basic-rails-application
/systemtap-static-probes-in-ruby
provision
how: container
image: fedora:rawhide
name: tmt-var-tmp-tmt-run-015-plans-default
distro: Fedora release 33 (Thirty Three)
kernel: 5.6.19-300.fc32.x86_64
summary: 1 guest provisioned
prepare
how: install
summary: Install required packages
name: requires
package: beakerlib
how: install
summary: Install recommended packages
name: recommends
package: rubygem-rails, psmisc, rubygem-sass-rails and 21 more
summary: 2 preparations applied
execute
how: beakerlib.tmt
test: Test creates new rails application in collection and runs it
00:00:12 /run-basic-rails-application
test: It tests there are static probes in ruby package.
00:00:01 /systemtap-static-probes-in-ruby
summary: 2 tests executed
report
how: display
pass /run-basic-rails-application
out.log: /var/tmp/tmt/run-015/plans/default/execute/logs/run-basic-rails-application/out.log
journal.txt: /var/tmp/tmt/run-015/plans/default/execute/logs/run-basic-rails-application/journal.txt
errr /systemtap-static-probes-in-ruby
out.log: /var/tmp/tmt/run-015/plans/default/execute/logs/systemtap-static-probes-in-ruby/out.log
journal.txt: /var/tmp/tmt/run-015/plans/default/execute/logs/systemtap-static-probes-in-ruby/journal.txt
summary: 1 test passed and 1 error
finish
container: stopped
container: removed
summary: 0 tasks completed
total: 1 test passed and 1 error
$ cat /var/tmp/tmt/run-015/plans/default/execute/logs/systemtap-static-probes-in-ruby/out.log
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Setup
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
ruby-2.7.1-134.fc33.x86_64
:: [ 08:18:58 ] :: [ PASS ] :: Checking for the presence of ruby rpm
:: [ 08:18:58 ] :: [ LOG ] :: Package versions:
:: [ 08:18:58 ] :: [ LOG ] :: ruby-2.7.1-134.fc33.x86_64
ruby-libs-2.7.1-134.fc33.x86_64
:: [ 08:18:58 ] :: [ PASS ] :: Checking for the presence of ruby-libs rpm
:: [ 08:18:58 ] :: [ LOG ] :: Package versions:
:: [ 08:18:58 ] :: [ LOG ] :: ruby-libs-2.7.1-134.fc33.x86_64
rubypick-1.1.1-13.fc33.noarch
:: [ 08:18:58 ] :: [ PASS ] :: Checking for the presence of rubypick rpm
:: [ 08:18:58 ] :: [ LOG ] :: Package versions:
:: [ 08:18:58 ] :: [ LOG ] :: rubypick-1.1.1-13.fc33.noarch
ruby-doc-2.7.1-134.fc33.noarch
:: [ 08:18:58 ] :: [ PASS ] :: Checking for the presence of ruby-doc rpm
:: [ 08:18:58 ] :: [ LOG ] :: Package versions:
:: [ 08:18:58 ] :: [ LOG ] :: ruby-doc-2.7.1-134.fc33.noarch
rubypick
:: [ 08:18:58 ] :: [ PASS ] :: Binary 'ruby' should belong to: ruby ruby-libs rubypick ruby-doc
:: [ 08:18:58 ] :: [ FAIL ] :: File /usr/share/doc/ruby-doc/ruby-exercise.stp should exist
:: [ 08:18:58 ] :: [ FATAL ] ::
:: [ 08:18:58 ] :: [ FAIL ] :: (Assert: expected 0, got 1)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Duration: 0s
:: Assertions: 5 good, 2 bad
:: RESULT: WARN (Setup)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment