From bdfaf6ec4de80f23956181c1c172842bba1c75e8 Mon Sep 17 00:00:00 2001 From: Sayan Nandan Date: Thu, 1 Jul 2021 21:35:56 +0530 Subject: [PATCH] Ensure that perl doesn't error --- .github/workflows/test-push.yml | 2 +- server/src/kvengine/encoding.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-push.yml b/.github/workflows/test-push.yml index fcb43f99..e87fb3e3 100644 --- a/.github/workflows/test-push.yml +++ b/.github/workflows/test-push.yml @@ -280,7 +280,7 @@ jobs: fetch-depth: 2 - name: Set up tools run: | - sudo apt update && sudo apt install awscli zip zstd -y + sudo apt update && sudo apt install awscli zip zstd perl -y aws configure set aws_access_key_id ${{ secrets.STORAGE_ACCESS_KEY }} aws configure set aws_secret_access_key ${{ secrets.STORAGE_ACCESS_SECRET }} aws configure set default.s3.signature_version s3v4 diff --git a/server/src/kvengine/encoding.rs b/server/src/kvengine/encoding.rs index db45e187..90635e43 100644 --- a/server/src/kvengine/encoding.rs +++ b/server/src/kvengine/encoding.rs @@ -100,7 +100,8 @@ fn gen_unicode() -> Vec { path.push_str("/scripts/unicode.pl"); fs::create_dir_all("./utf8/separated").unwrap(); fs::create_dir_all("./utf8/unseparated").unwrap(); - let _cmd = Command::new("perl").arg("-w").arg(path).output().unwrap(); + let cmd = Command::new("perl").arg("-w").arg(path).output().unwrap(); + assert!(cmd.stderr.is_empty()); let mut strings = vec![]; for file in fs::read_dir("utf8/separated").unwrap() { strings.push(fs::read_to_string(file.unwrap().path()).unwrap());