Skip to content

Commit

Permalink
[*/regression] Remove trailing whitespace in Python files
Browse files Browse the repository at this point in the history
  • Loading branch information
HW42 authored and mkow committed Apr 15, 2019
1 parent 79d6fb2 commit 0a0babc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Pal/regression/00_Bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def check_cpu_info(res):
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"))
Expand Down Expand Up @@ -182,7 +182,7 @@ def check_cpu_info(res):
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()
Expand Down
6 changes: 3 additions & 3 deletions Pal/regression/04_Ipc.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
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")
Expand Down
2 changes: 1 addition & 1 deletion Scripts/regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def run_checks(self):
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")
Expand Down

0 comments on commit 0a0babc

Please sign in to comment.