#!/bin/bash
set -e
cd /root/openclaw-workspace/projects/yu-zhi-ran
if [ "$1" == "publisher" ]; then
  echo "=== Testing publisher ==="
  python3 scripts/publisher.py
  echo "=== Publisher exit code: $? ==="
elif [ "$1" == "creator" ]; then
  echo "=== Testing creator ==="
  python3 scripts/creator.py
  echo "=== Creator exit code: $? ==="
else
  echo "=== Testing collector ==="
  python3 scripts/collector.py
  echo "=== Collector exit code: $? ==="
fi