Skip to content

Commit 8a1833d

Browse files
authored
Merge pull request #5614 from freedomofpress/fix-test-rm
Fix test_rm.py::test_secure_delete_capability
2 parents 55700b1 + 634fa24 commit 8a1833d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

securedrop/tests/test_rm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ def test_secure_delete_capability(config):
1313

1414
path = os.environ["PATH"]
1515
try:
16-
os.environ["PATH"] = "{}:{}".format("/sbin", config.TEMP_DIR)
16+
os.environ["PATH"] = "{}".format(config.TEMP_DIR)
1717
assert rm.check_secure_delete_capability() is False
1818
fakeshred = os.path.join(config.TEMP_DIR, "shred")
1919
with open(fakeshred, "w") as f:
20-
f.write("#!/bin/bash\nexit1\n")
20+
f.write("#!/bin/bash\nexit 1\n")
2121
os.chmod(fakeshred, 0o700)
2222
assert rm.check_secure_delete_capability() is False
2323
finally:

0 commit comments

Comments
 (0)