from sys import argv
from pandare import blocking, Panda
generic_type = argv[1] if len(argv) > 1 else "x86_64"
panda = Panda(generic=generic_type)
@blocking
def run_cmd():
panda.revert_sync("root")
panda.record_cmd("echo test && bash -c \"echo test2\"", recording_name="test")
panda.end_analysis()
panda.queue_async(run_cmd)
panda.run()