Skip to content

Commit

Permalink
address reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
yocalebo committed May 14, 2024
1 parent 11dabd4 commit ec44628
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion debian/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ override_dh_installsystemd:
dh_installsystemd --no-start -r --no-restart-after-upgrade --name=ix-shutdown
dh_installsystemd --no-start -r --no-restart-after-upgrade --name=ix-ssh-keys
dh_installsystemd --no-start -r --no-restart-after-upgrade --name=ix-syncdisks
dh_installsystemd --no-start -r --no-restart-after-upgrade --name=ix-swap
dh_installsystemd --no-start -r --no-restart-after-upgrade --name=ix-wait-on-disks
dh_installsystemd --no-start -r --no-restart-after-upgrade --name=ix-zfs
dh_installsystemd --no-start -r --no-restart-after-upgrade --name=snmp-agent
Expand Down
5 changes: 2 additions & 3 deletions tests/api2/test_disk_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

# Some 'constants'
MBR_SECTOR_GAP = 34
NO_SWAP = 0 # SWAP was removed, but arg left in API for backwards compat (is a NO-OP)
ONE_MB = 1048576
DATA_TYPE_UUID = "6a898cc3-1dd2-11b2-99a6-080020736631"

Expand Down Expand Up @@ -56,7 +55,7 @@ def test_disk_format(unused_disk):
disk, dd, grain_size, first_sector = unused_disk
assert grain_size != 0, 'ERROR: Cannot run this test without a non-zero grain_size'

call('disk.format', disk['name'], NO_SWAP)
call('disk.format', disk['name'])

partitions = call('disk.list_partitions', disk['name'])
assert len(partitions) == 1
Expand Down Expand Up @@ -90,6 +89,6 @@ def test_disk_format_removes_existing_partition_table(unused_disk):
assert len(partitions) == 1

# format removes existing partition labels and creates a new (data) partition
call('disk.format', disk['name'], NO_SWAP)
call('disk.format', disk['name'])
partitions = call('disk.list_partitions', disk['name'])
assert len(partitions) == 1

0 comments on commit ec44628

Please sign in to comment.