Project

General

Profile

Bug #12044

Bug #10288: Fix newly identified issues to make our test suite more robust and faster

Step "only the expected files are present on the persistence partition" sometimes fails: guestfs fails to find partition

Added by intrigeri almost 3 years ago.

Status:
Confirmed
Priority:
Normal
Assignee:
-
Category:
Test suite
Target version:
-
Start date:
12/19/2016
Due date:
% Done:

0%

Feature Branch:
Type of work:
Code
Blueprint:
Starter:
Affected tool:

Description

spawning as root: poweroff
    And I shutdown Tails and wait for the computer to power off                                                                    # features/step_definitions/common_steps.rb:588
libguestfs: trace: set_autosync true
libguestfs: trace: set_autosync = 0
libguestfs: trace: add_drive "/tmp/TailsToaster/TailsToasterStorage/__internal" "readonly:true" "format:qcow2" 
libguestfs: trace: get_tmpdir
libguestfs: trace: get_tmpdir = "/tmp/TailsToaster" 
libguestfs: trace: disk_create "/tmp/TailsToaster/libguestfsF652bA/overlay1" "qcow2" -1 "backingfile:/tmp/TailsToaster/TailsToasterStorage/__internal" "backingformat:qcow2" 
libguestfs: trace: disk_create = 0
libguestfs: trace: add_drive = 0
libguestfs: trace: launch
libguestfs: trace: get_backend_setting "force_tcg" 
libguestfs: trace: get_backend_setting = NULL (error)
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/tmp/TailsToaster" 
libguestfs: trace: get_backend_setting "gdb" 
libguestfs: trace: get_backend_setting = NULL (error)
libguestfs: trace: launch = 0
libguestfs: trace: list_devices
libguestfs: trace: list_devices = ["/dev/sda"]
libguestfs: trace: part_list "/dev/sda" 
libguestfs: trace: part_list = <struct guestfs_partition_list *>
libguestfs: trace: blkid "/dev/sda1" 
libguestfs: trace: blkid = NULL (error)
libguestfs: trace: close
libguestfs: trace: internal_autosync
libguestfs: trace: internal_autosync = 0
    Then only the expected files are present on the persistence partition on USB drive "__internal"                                # features/step_definitions/usb.rb:578
      blkid: blkid_stub: /dev/sda1: No such file or directory (Guestfs::Error)
      ./features/step_definitions/usb.rb:592:in `blkid'
      ./features/step_definitions/usb.rb:592:in `block (3 levels) in <top (required)>'
      ./features/step_definitions/usb.rb:591:in `each'
      ./features/step_definitions/usb.rb:591:in `find'
      ./features/step_definitions/usb.rb:591:in `block (2 levels) in <top (required)>'
      ./features/support/helpers/storage_helper.rb:212:in `guestfs_disk_helper'
      ./features/step_definitions/usb.rb:587:in `/^only the expected files are present on the persistence partition on USB drive "([^"]+)"$/'
      features/persistence.feature:32:in `Then only the expected files are present on the persistence partition on USB drive "__internal"'
    Given I start Tails from USB drive "__internal" with network unplugged and I login with read-only persistence enabled          # features/step_definitions/common_steps.rb:217
    And the network is plugged                                                                                                     # features/step_definitions/common_steps.rb:159
    And Tor is ready                                                                                                               # features/step_definitions/common_steps.rb:432
    Then Tails is running from USB drive "__internal"                                                                              # features/step_definitions/usb.rb:408
    And the boot device has safe access rights                                                                                     # features/step_definitions/usb.rb:428
    And all persistence presets are enabled                                                                                        # features/step_definitions/usb.rb:350
    And I switch to the "persistent-con" NetworkManager connection                                                                 # features/step_definitions/common_steps.rb:663
    And there is no GNOME bookmark for the persistent Tor Browser directory                                                        # features/step_definitions/common_steps.rb:768
    And I write some files not expected to persist                                                                                 # features/step_definitions/usb.rb:542
    And I remove some files expected to persist                                                                                    # features/step_definitions/usb.rb:534
    And I take note of which persistence presets are available                                                                     # features/step_definitions/usb.rb:550
    And I shutdown Tails and wait for the computer to power off                                                                    # features/step_definitions/common_steps.rb:588
    Then only the expected files are present on the persistence partition on USB drive "__internal"                                # features/step_definitions/usb.rb:578
      Scenario failed at time 02:27:19

Also available in: Atom PDF