From 6399ba9efb0173602f7fd233592e91b12bd63a32 Mon Sep 17 00:00:00 2001 From: Jadurani Davalos Date: Wed, 24 Sep 2025 10:56:07 +0800 Subject: [PATCH 1/2] fix(test.py): key error issue on x_IMGPATH We're using an invalid key `c_IMGPATH` instead of `x_IMGPATH` which throws an error when we run `rs-test -b` --- rsudp/test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rsudp/test.py b/rsudp/test.py index 5dd7707..339c925 100644 --- a/rsudp/test.py +++ b/rsudp/test.py @@ -163,7 +163,7 @@ def cancel_tests(settings, MPL, plot, quiet): else: settings['plot']['enabled'] = False del TEST['d_matplotlib'] - del TEST['c_IMGPATH'] + del TEST['x_IMGPATH'] del TEST['c_img'] printM('Plot is disabled') @@ -248,3 +248,4 @@ def is_connected(hostname): except: pass return False + From f3ca255fa2050f89f691cdca5e8df48795689388 Mon Sep 17 00:00:00 2001 From: Jadurani Davalos Date: Wed, 24 Sep 2025 10:58:21 +0800 Subject: [PATCH 2/2] fix(c_testing.py): key error issue on c_img Had to check if key exists first, otherwise this throws an error when running `rs-test -b` --- rsudp/c_testing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rsudp/c_testing.py b/rsudp/c_testing.py index df479fd..c3ba7bf 100644 --- a/rsudp/c_testing.py +++ b/rsudp/c_testing.py @@ -121,7 +121,7 @@ def _messagetests(self, d): t.TEST['x_IMGPATH'][1] = True def _img_test(self): - if (t.TEST['c_img'] and IMGPATH): + if ('c_img' in t.TEST and t.TEST['c_img'] and IMGPATH): t.TEST['c_img'][1] = os.path.exists(IMGPATH) dn, fn = os.path.dirname(IMGPATH), os.path.basename(IMGPATH) os.replace(IMGPATH, os.path.join(dn, 'test.' + fn))