diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2016-03-01 09:45:33 +0100 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2016-03-01 09:45:33 +0100 |
commit | ad691bdc906f9158701d64effce51205b8654c83 (patch) | |
tree | 0fb27ffe58e25c169cbf3ebb1568da81e09d5fa7 | |
parent | 8bf61938904f2c01c6e1ffc3ba900db54f144145 (diff) |
integration-test: Fix race condition in fake CD drive creation
Don't reset scsi_debug/ptype to 0 immediatley after the add_host request. This
seems to be racy and sometimes creates a normal hard disk drive.
-rwxr-xr-x | src/tests/integration-test | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/tests/integration-test b/src/tests/integration-test index 47853e1..2fcc755 100755 --- a/src/tests/integration-test +++ b/src/tests/integration-test @@ -412,8 +412,6 @@ class UDisksTestCase(unittest.TestCase): with open('/sys/bus/pseudo/drivers/scsi_debug/add_host', 'w') as f: f.write('1') # generate a new drive subprocess.call(['udevadm', 'settle']) - with open('/sys/bus/pseudo/drivers/scsi_debug/ptype', 'w') as f: - f.write('0') ro_dirs = [] while len(ro_dirs) < 2: |