cloudmesh/cloudmesh-pi-burn

windows burn does not work on powershell or cmd

jpfleischer opened this issue · 2 comments

line 498 the shell.execute doesnt work on powershell or cmd. only git bash works
windowssdcard.py

        try:
            lines = Shell.bash("cat /proc/partitions")
        except subprocess.CalledProcessError as e:
            print(str(e.output))
        print(lines)

we shoudl just replace with python readfile

form cloudmesh.common.util import readfile
try
   lines = readfile("/proc/partitions")
except Exeption as e:
   print(e)
   Console.error("issue reading /proc/partitions)

However i do not know if /pro/partitions even exists on powershell or windows. Please develop pytest so its easy to run on the different osses CMD, powershel, git bash, mac, linus

for cms burn to work:
add test for cms burn if you are on windows and git bash is not installed, spit out a warning and interrupt