Browse Source

[*/regression] Remove trailing whitespace in Python files

Simon Gaiser 5 years ago
parent
commit
0a0babc26a
3 changed files with 6 additions and 6 deletions
  1. 2 2
      Pal/regression/00_Bootstrap.py
  2. 3 3
      Pal/regression/04_Ipc.py
  3. 1 1
      Scripts/regression.py

+ 2 - 2
Pal/regression/00_Bootstrap.py

@@ -95,7 +95,7 @@ regression.add_check(name="Dotdot handled properly",
     check=lambda res: "User Program Started" in res[0].log)
 rv = regression.run_checks()
 if rv: sys.exit(rv)
-    
+
 
 # Running Bootstrap2
 regression = Regression(loader, manifest_file("Bootstrap2"))
@@ -182,7 +182,7 @@ if rv: sys.exit(rv)
 regression = Regression(loader, "fakenews")
 
 regression.add_check(name="Error on missing executable and manifest",
-    check=lambda res: "Executable not found" in res[0].log and 
+    check=lambda res: "Executable not found" in res[0].log and
                      any([line.startswith("USAGE: ") for line  in res[0].log]))
 
 rv = regression.run_checks()

+ 3 - 3
Pal/regression/04_Ipc.py

@@ -6,16 +6,16 @@ try:
     sgx = os.environ['SGX_RUN']
 except KeyError:
     sgx = 0
-    
+
 if sgx:
     print("Bulk IPC not supported on SGX")
     exit(0)
 
-## XXX Should really be running these tests as part of CI 
+## XXX Should really be running these tests as part of CI
 if not os.path.exists('/dev/gipc'):
     print("GIPC not loaded; skipping these tests\n")
     exit(0)
-    
+
 def prepare_files(args):
     with open("ipc_mapping.tmp", "w") as f:
         f.write("Hello World")

+ 1 - 1
Scripts/regression.py

@@ -89,7 +89,7 @@ class Regression:
                                 something_failed = 1
                             if timed_out : print('Test timed out!')
                             keep_log = True
-                            
+
                 if self.keep_log and keep_log:
                     sargs = [re.sub(r"\W", '_', a).strip('_') for a in args]
                     filename = 'log-' + '_'.join(sargs) + '_' + time.strftime("%Y%m%d_%H%M%S")