diff options
author | Jonathan Cave <jonathan.cave@canonical.com> | 2018-06-19 16:15:37 +0100 |
---|---|---|
committer | Jonathan Cave <jonathan.cave@canonical.com> | 2018-06-19 16:15:37 +0100 |
commit | 0bd6567a77d97e24874d658e0067790a9ff690e1 (patch) | |
tree | e20534c318757e8fdae52985b2bc0d2fb9fa5953 | |
parent | a06844f2badc6d020b4e1bdcd1669307e5d8d0a6 (diff) |
Remove argv passing, neater argument check
-rwxr-xr-x | bin/fde_tests.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/bin/fde_tests.py b/bin/fde_tests.py index 92a6cc2..3008735 100755 --- a/bin/fde_tests.py +++ b/bin/fde_tests.py @@ -21,10 +21,8 @@ import subprocess as sp import sys -def main(argv): - on_desktop = False - if len(sys.argv) > 1 and sys.argv[1] == 'desktop': - on_desktop = True +def main(): + on_desktop = len(sys.argv) > 1 and sys.argv[1] == 'desktop' # the mountpoint corresponding to the on disk encrypted partition base_mount = '/' if on_desktop else '/writable' @@ -100,4 +98,4 @@ def main(argv): if __name__ == "__main__": - main(sys.argv) + main() |