spark: add simple pwd verification script
This commit is contained in:
1 parent
e222ef307b
commit
5e5e503ec4
1 file changed
+18
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Simple verification script to check current working directory."""
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
cwd = os.getcwd()
|
||||
print(f"Working directory: {cwd}")
|
||||
|
||||
if cwd == '/root':
|
||||
print("PASS: Working directory is /root")
|
||||
sys.exit(0)
|
||||
else:
|
||||
print(f"FAIL: Working directory is {cwd}, expected /root", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(verify_hermes_setup())
|
||||
Reference in new issue
Block a user