From 94cba899649050b72a5ba98b61ef7d5af82e43de Mon Sep 17 00:00:00 2001 From: Dmitry Romanov Date: Thu, 29 Aug 2024 20:00:53 -0400 Subject: [PATCH] Move rcnd and make cli commands tests --- .github/workflows/python-tests.yml | 9 ++++++++- bin/rcnd | 4 ++++ rcnd | 4 ---- 3 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 bin/rcnd delete mode 100755 rcnd diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 2a01796e..c6c1edba 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -26,4 +26,11 @@ jobs: run: | cd $GITHUB_WORKSPACE/python python -m unittest discover -s $GITHUB_WORKSPACE/python/tests -t $GITHUB_WORKSPACE/python/tests - + + - name: Test CLI commands + run: | + source environment.bash + echo "rcnd command is running" + rcnd + echo "rcdb command is running" + rcdb diff --git a/bin/rcnd b/bin/rcnd new file mode 100644 index 00000000..f8cedf54 --- /dev/null +++ b/bin/rcnd @@ -0,0 +1,4 @@ +#!/bin/sh + +/usr/bin/env python $RCDB_HOME/python/rcdb/rcnd.py "$@" + diff --git a/rcnd b/rcnd deleted file mode 100755 index e11ece81..00000000 --- a/rcnd +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -/usr/bin/env python $RCDB_HOME/python/rcnd.py "$@" -