backups: Don't rely on disk labels during export/restore

Disk labels are unreliable. They may not exist. There are not unique and two
disks in the system may have the same label. Instead use the device path of the
disk/partition.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Joseph Nuthalapati authored and James Valleroy committed 2018-10-22 19:26:22 -04:00
1 parent b29ccfc060
commit c33b192f71
7 files changed
+70 -44

No files matched your search

+2 -2
View File
@@ -213,8 +213,8 @@ def backup_restore(browser, app_name):
browser.visit(default_url)
nav_to_module(browser, 'backups')
browser.find_link_by_href(
'/plinth/sys/backups/restore/Root%2520Filesystem/_functional_test_' +
app_name + '.tar.gz/').first.click()
'/plinth/sys/backups/restore/%252F/_functional_test_' + app_name +
'.tar.gz/').first.click()
submit(browser)