tracker-indexing-mass-storage manual

medium

Image Types:
basesdk-amd64 / sdk-amd64 / target-armhf-internal / target-amd64
Image Deployment:
APT
Type:
functional

Description

Check tracker indexes mass storage devices on insertion.


Resources

  • A USB mass storage device.
  • Format mass storage device with a single FAT32 partition.

Pre Conditions

  1. Ensure Rootfs is remounted as read/write.
  2. $ sudo mount -o remount,rw /

  3. Install dependencies
  4. $ sudo apt install apertis-tests gvfs libglib2.0-bin python3 python3-gi gir1.2-tracker-2.0 tracker

  5. Restart the system to restore the filesystem state to read-only before running the test.
  6. $ sudo reboot


Execution Steps

  1. Execute the test script:
  2. $ /usr/lib/apertis-tests/tracker/manual/test-removable-device.py

  3. Insert the USB mass storage device when prompted to do so. You may need to click on it in the file manager to mount it so the test can proceed.
  4. The test will continue once the device is automounted.

Expected

The output should be similar to this:

Please insert storage ...

Warning: Stopping tracker-store.service, but it can still be activated by:

tracker-store.timer

Warning: Stopping tracker-miner-fs.service, but it can still be activated by:

tracker-miner-fs.timer

TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Userguides' initial status is 'Idle'

TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Applications' initial status is 'Idle'

TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Files' initial status is 'Crawl finished for directory 'file:///home/shared''

TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Extract' initial status is 'Idle'

TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Userguides' status changed to 'Initializing'

TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Userguides' status changed to 'Idle'

TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Applications' status changed to 'Crawling recursively directory 'file:///usr/local/share/applications''

TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Applications' status changed to 'Crawling recursively directory 'file:///usr/share/applications''

TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Applications' status changed to 'Crawl finished for directory 'file:///home/user/.local/share/desktop-directories''

TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Files' status changed to 'Crawling recursively directory 'file:///media/user/6114-D5FD''

TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Applications' status changed to 'Idle'

TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Files' status changed to 'Crawling recursively directory 'file:///home/user/Documents''

TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Files' status changed to 'Crawling recursively directory 'file:///home/user/Downloads''

TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Files' status changed to 'Crawling recursively directory 'file:///home/user/Music''

TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Files' status changed to 'Crawling recursively directory 'file:///home/user/Pictures''

TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Files' status changed to 'Crawling recursively directory 'file:///home/user/Videos''

TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Files' status changed to 'Crawling recursively directory 'file:///home/shared''

TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Files' status changed to 'Crawl finished for directory 'file:///home/shared''

TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Files' status changed to 'Processing…'

TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Files' status changed to 'Idle'

TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Extract' status changed to 'Extracting metadata'

TrackerIndexer: Miner 'org.freedesktop.Tracker1.Miner.Extract' status changed to 'Idle'

TrackerIndexer: quit main loop

.

----------------------------------------------------------------------

Ran 1 test in 16.406s

OK

If any test failed, they will be listed instead of the success message:

======================================================================

FAIL: test_removable_device (__main__.TestRemovableDevice)

----------------------------------------------------------------------

Traceback (most recent call last):

File "./apertis-tests/tracker/manual/test-removable-device.py", line 46, in test_removable_device

self.assertTrue(False)

AssertionError: False is not true

----------------------------------------------------------------------

Ran 1 test in 13.306s

FAILED (failures=1)